| Ticket UUID: | 5d5c43acad21acc6a43caaf2647b4d0c30ef4c8a | |||
| Title: | linux: when window is maximized, menu replacement fails | |||
| Type: | Bug | Version: | 8.6.1 | |
| Submitter: | anonymous | Created on: | 2016-06-07 02:04:05 | |
| Subsystem: | 12. Unix Menus | Assigned To: | nobody | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Open | Last Modified: | 2016-06-07 17:10:18 | |
| Resolution: | None | Closed By: | nobody | |
| Closed on: | ||||
| Description: |
LinuxMint 17.3, mate window manager.
If the window is not maximized, the menu gets replaced correctly.
If the window is maximized and the menu gets replaced, it just disappears.
#!/usr/bin/tclsh
package require Tk
menu .m
menu .x
.x add command -label aaa
.x add command -label bbb
.x add command -label ccc
.m add cascade -label eee -menu .x
.m add command -label ddd
. configure -menu .m
ttk::label .l -text {maximize the window now}
pack .l
menu .n
menu .y
.y add command -label fff
.y add command -label ggg
.y add command -label hhh
.n add cascade -label iii -menu .y
.n add command -label jjj
after 10000 [list . configure -menu .n]
| |||
| User Comments: |
anonymous (claiming to be [email protected]) added on 2016-06-07 17:10:18:
Changing severity to minor. Menu replacement not only has this bug, but has severe flicker issues (flicker problems exist on all platforms). The better way to replace the menu is to use 'menu delete 0 end' and then rebuild the menu. This has the disadvantage that the namespace must be carefully managed (as there's only one menu), but no flicker, and no bugs. fvogel added on 2016-06-07 05:54:14: Same issue with Debian 6.0. No problem with Windows (Vista). | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki