When a Tk widget is created, its attributes are set by one of three sources. It is important to note that Tcl command specifications have priority over resource database specifications:
The most evident source of attributes are the options in Tcl commands, such as the -text quit attribute specification for a button.
If an attribute is not specified on the command line, then the resource database is queried as described later.
If there is nothing in the resource database, then a hard-coded value from the widget implementation is used.
The resource database consists of a set of keys and values. Unlike many databases, however, the keys are patterns that are matched against the names of widgets and attributes. This makes ...