Tiny eg
#!/bin/env wish9
ttk::menubutton .moreButton -text More -underline 0
menu .moreButton.menu
.moreButton.menu add command -label Test -underline 0 \
-command {puts "Test"}
.moreButton configure -menu .moreButton.menu
pack .moreButton
bind . <Escape> {exit}
bind . <Alt-m> {.moreButton invoke} ;# WRONG!
If I click the More button the menu pops up and works correctly.
But I cannot see how to do a binding that will make the menu
pop up when I press <Alt-m>. How can I do this?
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 1,066 |
Nodes: | 10 (0 / 10) |
Uptime: | 171:04:21 |
Calls: | 13,708 |
Calls today: | 2 |
Files: | 186,949 |
D/L today: |
7,344 files (2,021M bytes) |
Messages: | 2,415,847 |