Tkinter menu item underline syntax [RESOLVED]
Chris Angelico
rosuav at gmail.com
Wed Jan 6 15:51:57 EST 2021
On Thu, Jan 7, 2021 at 7:43 AM Rich Shepard <rshepard at appl-ecosys.com> wrote:
> This is the working version of the stanza I initially posted:
>
> file_menu.add_command(
> label = 'New',
> command = self.callbacks['file->new', underline: 0],
> accelerator = 'Ctrl+N'
> )
>
> The label line separated from the command with a comma. The underline option
> is a key and separated from its value with a colon.
>
Are you sure that this works? It's syntactically valid, but I don't
think it means what you think it does.
ChrisA
More information about the Python-list
mailing list