Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

unposting a ttk::menubutton without selecting

14 views
Skip to first unread message

Ralf Fassel

unread,
Jul 7, 2017, 9:56:46 AM7/7/17
to
Unposting a ttk::menubutton menu on Linux does not work as expected
compared to a tk::menubutton:

menubutton .tkmb -text Tk -menu .tkmb.menu
menu .tkmb.menu -tearoff 0
.tkmb.menu add command -label Command

ttk::menubutton .ttkmb -text Ttk -menu .ttkmb.menu
menu .ttkmb.menu -tearoff 0
.ttkmb.menu add command -label Command

grid .tkmb .ttkmb -sticky ew
grid [checkbutton .cb -text "Check me!" -height 3] -

- click on the tk::menubutton,
-> menu opens
- from the tk::menubutton, move mouse to the right on the
ttk::menubutton and click on it
-> first menu closes
-> ttk menu opens
OK

Now: with the ttk::menu open, move sideways back to the tk::menu and
click on it:
- BUG nothing happens
- you can't interact with the GUI until you move mouse over the
ttk::menu (no click!) and leave it again

IMHO this is inconsistent and a nuisance, especially with empty menus
attached to ttk::menubuttons, which freeze the application for no
obvious reason until you click outside the application or press ESC.

On Windows, both kinds of menubuttons behave the same, so this occurs
only on Linux.

Should I issue a bug report for this?

TNX
R'
0 new messages