Example 7.6, “Generated Option Database Entries” shows Option Database entries generated for a template »top_1«. The template »top_1« contains five windows. The internal windows are accessible through the template associated array: »w«, where every window is addressed through its index (the index is immutable). The properties are registered on the template class name »Top_1«.
The colour values in Example 7.6, “Generated Option Database Entries” originate from my
~/.Xresources
configuration. These values are different from Tk’s
default values and thus included in the code
generation.
.Xresources
or
.Xdefaults
X Resource Database are
automatically used under the X Window System.
The best approach is to add colour names to the list of ignored properties; albeit wrong Option Database entries are harmless. Option Database entries have no negative effect on the performance of the generated code. Whereas any command line property costs performance. Before Tk 8.5, using the command line could double the evaluation time.