Hi,

On Wed, 14 Jul 2021 14:22:37 +0000
Vasilis Vlachoudis <vasilis.vlachou...@cern.ch> wrote:

> I am trying to change the tk widgets to ttk, so I can globally correct
> them, e.g. root=tk.Tk()
> sb=ttk.Scrollbar(root)
> sb.pack(side=tk.RIGHT,fill=tk.Y)
> style=ttk.Style()
> style.configure("TScrollbar", width="10m")
>
> However the width doesn't apply on the up/downarrows which they remain
> tiny. Where I can find the style options that I can change?
> I've tried
> style.configure("TScrollbar.uparrow", width="10m")
> but doesn't work

looking at defaults.tcl helps :)

At least here on X11 with default ttk style

st.configure('TScrollbar', width='10m', arrowsize='10m')

works.

With the default style scaling a checkbutton with

st.configure('TCheckbutton', indicatordiameter='10m')

also works, not with the "alt" theme though (I guess they are using a
bitmap there again).

Best regards

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

Without freedom of choice there is no creativity.
                -- Kirk, "The return of the Archons", stardate 3157.4
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to