Is there a Tkinter/ttk style reference?

谁都会走 提交于 2021-01-27 09:01:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!