问题
With ttk
one can produce code like the following:
style.configure('TButton', font='helvetica 24',foreground='red', padding=10)
Is there a list of the different options (e.g. font, foreground, padding) and the values (e.g. helvetica 24, red, 10) associated with each of them? I've been searching online and have yet to find such a reference.
Also, is there a css-like thing we can use to style a TKinter GUI? Or is ttk my best bet?
回答1:
Most information you should find in Tk Reference Manual. See all widgets and themed widgets.
EDIT: maybe more usefull place: Tkinter 8.5 reference: a GUI for Python on New Mexico Tech University
来源:https://stackoverflow.com/questions/24592132/is-there-a-tkinter-ttk-style-reference