Problem with ttk::spinbox button size
- From: Zoltan Kocsi <zoltan@xxxxxxxxxxxxx>
- Date: Sat, 28 Jan 2012 11:23:53 +1100
To cater for hugely varying display sizes and resolutions, in an app I allow
the user to change the default font sizes used by Tk.
If I have a classic Tk listbox and I increase the font size, then the up and
down arrows which spin the box are enlarged proportionally, as expected.
However, ttk::listbox (and, for that matter, ttk::combobox) enlarge the entry
field but the buttons stay the same size as before. If you enlarged the font
because you have a very high resolution display, then you end up with a
nicely lookung text field, with two tiny buttons crunched up on the right
I tried to play with the style layout for a spinbox, but no matter what
combinations of -expand and -sticky options I specified for the subwidgets
which make up the spinbox, the buttons did not get any larger. I could move
them around, but the actual button size remained the same.
While using the classic widget instead of the ttk:: one would be one
solution, I'd like to stick to ttk:: thoughout due to its better adherence to
platform specific look&feel.
Could someone tell me the secret of making ttk:: subwidgets scale
proportionally to each other?
Bendor Research Pty. Ltd.
- Prev by Date: Re: tablelist bindings
- Next by Date: tablelist bug
- Previous by thread: tablelist bindings
- Next by thread: Re: Problem with ttk::spinbox button size