On Fri, 8 Jan 2021, Richard Damon wrote:
It could be either:
self.menu = menubar
or
self['menu'] = menubar
Got it, Richard. Removed the period after 'self'.
Thanks,
Rich
--
https://mail.python.org/mailman/listinfo/python-list
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 ke
On 1/8/21 4:47 PM, Rich Shepard wrote:
> I'm using Chapter 9 in Mark Roseman's "Modern Tkinter for Busy Python
> Developers" to learn how to write a top level menu. MWE code is attached.
>
> Python3 tells me there's invalid syntax on line 42:
> self.['menu'] = menubar # attach it to the top lev
Am 08.01.21 um 22:47 schrieb Rich Shepard:
I'm using Chapter 9 in Mark Roseman's "Modern Tkinter for Busy Python
Developers" to learn how to write a top level menu. MWE code is attached.
Python3 tells me there's invalid syntax on line 42:
self.['menu'] = menubar # attach it to the top level
I'm using Chapter 9 in Mark Roseman's "Modern Tkinter for Busy Python
Developers" to learn how to write a top level menu. MWE code is attached.
Python3 tells me there's invalid syntax on line 42:
self.['menu'] = menubar # attach it to the top level window
^
yet that's the syntax he p