Tk Source Code

Artifact [62090302]
Login

Artifact 6209030236c4c8e735027073d85c1e5d6beb440d:

Attachment "menubutton auto width bug.tcl" to ticket [3587262f] added by reowen 2012-11-15 05:37:26.
# demonstrate an auto-width bug in menubutton
# in Tck/Tk 8.5.11 on MacOS 10.8.2 the menubutton is displayed far too short
# removing the option add or setting it again will fix the display
# update idletasks does NOT seem to help
wish
option add "*font" "{Lucida Grande} 12"
menubutton .mb -textvariable var
pack .mb
set var "Normal"