problem: Tkinter.Menu() on NT
dworkin at ccs.neu.edu
Mon Mar 6 15:40:07 CET 2000
"Sven Drescher" <Sven.Drescher at dlr.de> writes:
> under Win NT the method returns 'none'. What's wrong with my code?
You don't say what method you mean, so I'll guess:
> def test_routine():
> global submenu
> print submenu.index('active')
This method, as written, should never return anything but None.
If you want it to return something, you should use a return
statement. Perhaps changing that last line to
would do what you desire.
More information about the Python-list