Tkinter menu item underline syntax [RESOLVED]

Rich Shepard rshepard at appl-ecosys.com
Wed Jan 6 14:18:15 EST 2021


On Wed, 6 Jan 2021, 2QdxY4RzWzUUiLuE at potatochowder.com wrote:

> I'm not a TKinter expert (nor even a current user), but that line that
> begins with whitespace and "command =" looks suspicious. As far as I can
> see, Python is correct to call it syntactically erroneous.

Yes, the line above it needed to be terminated by a comma, not \n.

I found the answer: underline is an option and options are key: value pairs.
So, the correct syntax is underline: 0.

Thanks,

Rich


More information about the Python-list mailing list