faqts : Computers : Programming : Languages : Python : Tkinter

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

6 of 6 people (100%) answered Yes
Recently 4 of 4 people (100%) answered Yes

Entry

What is the best way of setting default options of widgets?

Jul 9th, 2000 22:30
unknown unknown, Cameron Laird


You can use an option database. If you create a file called optionDB 
with for example the following kind of entries:

*font:                   Times New Roman
*Button*foreground       blue
*foreground              black

You can then apply these via

root.option_readfile('optionDB')

For more on this, see

http://www.regularexpressions.com/#options