[Tkinter-discuss] using list elements in menu construction?

Michael Lange klappnase at web.de
Tue Mar 1 20:42:58 CET 2005

On Tue, 1 Mar 2005 07:08:47 -0700
Stewart Midwinter <stewart.midwinter at gmail.com> wrote:

Hi Stewart,

there's a typo in your drawGui() method:

>         for i in range(0,15):
>             print '%s: %i ' % (self.names[i], self.opts[i].get())
>             menuBar.addmenuitem('Options', 'checkbutton', self.names[i],
>                                  ^^^^^^^

I guess you meant 'Edit', at least you have defined an 'Edit' menu and no 'Options' menu before.

Best regards


More information about the Tkinter-discuss mailing list