How To Find Currently Selected Tile.Notebook Tab?

Kevin Walzer kw at codebykevin.com
Sat Apr 21 11:45:34 EDT 2007


bcwhite at pobox.com 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
http://www.codebykevin.com



More information about the Python-list mailing list