problem: Tkinter.Menu() on NT

Justin Sheehy 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

return submenu.index('active') 

would do what you desire.

-Justin

 




More information about the Python-list mailing list