tkinter: creating/attaching menubar to top level window [RESOLVED]
Rich Shepard
rshepard at appl-ecosys.com
Fri Jan 8 18:16:23 EST 2021
On Fri, 8 Jan 2021, Christian Gollwitzer wrote:
> It is a simple typo, remove the dot.
> self['menu'] = menubar
> It will then stop at the add_cascade, fix it like this:
Christian,
Well, I totally missed that because I'm used to adding a period after each
self. Your fresh eyes saw what I kept missing,
> menubar.add_cascade(menu=self.menu_file, label='File')
I was going to add the 'self' there when I found what stopped the processing
before it.
Many thanks.
Stay well and carpe weekend,
Rich
More information about the Python-list
mailing list