From: Kevin Walzer <kw@co...> - 2008-02-22 00:49:45
Joe English wrote:
> Kevin Walzer wrote:
>> These buttons appear to be utilizing the Toolbutton style, but I haven't
>> set them up that way. Here is the code that calls them:
>> ttk::frame .preferences.push -padding 10
>> pack .preferences.push -side bottom -fill both -expand yes
>> ttk::button .preferences.push.button -command "savePref; destroy
>> .preferences" -text "Save Preferences"
> Check the option database:
> option get .preferences.push.button style Style
> If that returns "Toolbutton", grep your source for
> 'option add .* Toolbutton' to see where it's coming from.
> If that returns the empty string, I'm stumped ...
It does return the empty string.
What's especially weird is that the buttons use the normal TButton style
if I grid them; it's packing them that messes things up. Even more
strange, even if I explicitly configure the style as TButton, they
display as Toolbutton if I pack them.
This doesn't happen in other instances when I pack ttk::buttons--it only
This is with Tk 8.5.0 on Leopard.
Code by Kevin