From: Russell E. O. <ro...@uw...> - 2012-11-16 19:15:04
|
In article <row...@ne...>, "Russell E. Owen" <ro...@uw...> wrote: > I'm switching from Tcl/Tk 8.4.x to 8.5.x on MaOS (so I can use modern > 64-bit python) and am running into many problems. > > I've been able to find workarounds for most, but not this one (bug #ID > 3587262): menubuttons are often shown far too narrow if the size is > automatic*. Here is a demonstration: > > tk_optionMenu .om omVar DC1 DC2 DC3 > .om configure -width 3 # -indicatoron 0 > pack .om Sorry...wrong code (the above demonstrates a bug with manual width that is easy to work around and is not affected by font). Here's the code showing the bug for the automatic case: option add "*font" "{Lucida Grande} 12" menubutton .mb -textvariable var pack .mb set var "Normal" > One oddity is that the display becomes correct if I change the font size > (and I can then change it back and it is still right). > > Does anyone know a simple workaround? I fear I'm going to have to assign > a callback to the variable and manually set the width based on the > content of the var, but I was hoping for something simpler. ... -- Russell |