Tkinter menu item underline syntax [RESOLVED]

Rich Shepard rshepard at appl-ecosys.com
Thu Jan 7 08:32:37 EST 2021


On Thu, 7 Jan 2021, Peter Otten wrote:

> Spoiler: unless the name 'underline' is defined you get a NameError:
> NameError: name 'underline' is not defined
> If it is defined and self.callbacks is a dict you get a TypeError:
> TypeError: unhashable type: 'slice'
> because that's what a colon means in a context like
> x[a:b]

The template I used for the menu doesn't scale to my application so I'm
re-writing it from scratch.

Thanks, all,

Rich


More information about the Python-list mailing list