pmw "about" dialog

Matthew Dixon Cowles matt at mondoinfo.com
Tue Oct 16 13:21:47 EDT 2001


On Tue, 16 Oct 2001 12:50:40 +0100, Sharriff.Aina at med-iq.de
<Sharriff.Aina at med-iq.de> wrote:

>Could someone tell me why the about dialog in this code does not show?

>#create submenu "About"
>aboutmenu = Menu(menubar, tearoff=0)
>aboutmenu.add_command(label = "About")
># add submenu "about" to menubar
>menubar.add_cascade(label="About", menu=aboutmenu, command =
>dialogue_about)

The command option needs to be in the call to add_command() not in the
call to add_cascade(). I don't know why add_cascade() doesn't complain
about getting an option that it doesn't want.

Regards,
Matt



More information about the Python-list mailing list