[Tkinter-discuss] ttk.Notebook - how to bind to tab events (tab caption has focus or mouseover)
hamiljf
john at hamilton.org.uk
Wed May 9 12:55:06 CEST 2012
Although not quite an answer, I found this useful...
_notebooknotify = {}
def addopenlistener(self,page,action):
self._notebooknotify[str(page)] = action
def notify(event):
id = str(event.widget.select())
if id in self._notebooknotify:
self._notebooknotify[id].run()
self.addopenlistener(child,action) # causes action.run() to be invoked
every time child is opened
and it also give you a good place to put in tracing/logging/etc
--
View this message in context: http://python.6.n6.nabble.com/ttk-Notebook-how-to-bind-to-tab-events-tab-caption-has-focus-or-mouseover-tp1978460p4962779.html
Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.
More information about the Tkinter-discuss
mailing list