Research Questions
- What are the valid keys of an option database?
- known: font size, font family, font color, ...
unknown: border width? interior padding? relief style? various combinations like "active background" and "inactive background" and on & on ..?
- it appears that things besides font size, font family, and font color can be expressed, but how do you know if a given configuration option can be expressed or not?
- What are the valid values of an option database?
- how are they expressed?
- How compatible is option_add w/ native expressions in an option database text file?
- for example, must values be Font objects, or can "helvetica 20 bold" as a string work..?
APIs
- option_add(key, value)
- font specifications: "*Font" to "courier", "*Label.Font" to "helvetica 20 bold", ...
- color specifications: "*Background" to "light blue", "*selectBackground" to "gold", "*selectForeground" to "black", ...
- ???
- changes to the option database does not affect what is already created
See Also
Clear description of the option database appears to be sparse.
EffBot: Changing the Default Font via the Option Database -- python, tkinter
Using Tk option database to configure Tk widgets -- (python2)
Pythonware entry? (Blank.)