How To Find Currently Selected Tile.Notebook Tab?

Kevin Walzer kw at
Sat Apr 21 17:45:34 CEST 2007

bcwhite at wrote:
>>> How can I determine what tab is currently selected in a Tile.Notebook
>>> widget?
>>> The best suggestion I've been able to find via Google is
>>> "mynotebook.index('current')", but that gets an exception from Tcl.
>> How about
>> mynotebook.index.current()
> No good:  AttributeError: 'function' object has no attribute 'current'
> I tried "mynotebook.index().current()", too, but get a different
> error.
> -- Brian
Not sure what the problem is then--perhaps that function hasn't been 
mapped into Tkinter. I don't use that feature myself.

Kevin Walzer
Code by Kevin

More information about the Python-list mailing list