4

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?

furas
  • 134,197
  • 12
  • 106
  • 148
rainmaker
  • 43
  • 1
  • 4

1 Answers1

2

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 anzeljg that now maintains the doc that used to be hosted on the New Mexico Tech University website

Reblochon Masque
  • 35,405
  • 10
  • 55
  • 80
furas
  • 134,197
  • 12
  • 106
  • 148
  • This `Tk` reference is not for Python/tkinter specifically, so you should try to improve this answer, because it could be helpful also for other visitors of the website. – nbro Jan 13 '15 at 16:13