Skip to content
Tcl Source Code Artifact [ed38d6ceaf]
Login

Artifact [ed38d6ceaf]

Artifact ed38d6ceafb9852b8db2ad9e6ddac154b2ec4964bfb9b7f6c1f2bb80532356be:

Ticket change [ed38d6ceaf] - Closed ticket [3f7eca5475a5ead1|3f7eca5475]: <i>Tcl/Tk, Tkinter and X11 system colors</i> plus 3 other changes by serhiy.storchaka on 2026-09-20 10:59:11.
D 2026-09-20T10:59:11.326
J icomment Tk\sloads\sthe\sX\sresources\s(the\sRESOURCE_MANAGER\sproperty\sset\sby\sxrdb,\sor\s~/.Xdefaults\sif\sit\sis\snot\sset)\sinto\sits\soption\sdatabase,\sso\sa\swildcard\sentry\ssuch\sas\s<tt>*background:\sblack</tt>\sapplies\sto\severy\sTk\swidget,\sas\sit\sdoes\sto\severy\sother\sX\sapplication\swhich\shonours\sresources.\sIt\sis\snot\sspecific\sto\sTkinter.\n\nThe\susual\sfix\sis\sto\srestrict\ssuch\sentries\sin\s.Xresources\sto\sthe\sapplications\sthey\sare\smeant\sfor,\se.g.\s<tt>URxvt*background</tt>\sor\s<tt>XTerm*background</tt>,\sinstead\sof\s<tt>*background</tt>.\n\nIf\syou\scannot\schange\sthem,\sa\smore\sspecific\spattern\sfor\sthe\sTk\sapplication\sclass\swins\sover\sthe\swildcard.\sTkinter\sapplications\shave\sthe\sclass\s<tt>Tk</tt>\sby\sdefault\s(the\s<tt>className</tt>\sargument\sof\s<tt>tkinter.Tk</tt>),\sso\sthis\sin\s.Xresources\srestores\sthe\sdefaults\sfor\sall\sof\sthem:\n<verbatim>\nTk*background:\s#d9d9d9\nTk*foreground:\sblack\nTk*Entry.background:\swhite\nTk*Text.background:\swhite\nTk*Listbox.background:\swhite\n</verbatim>\n(a\swish\sscript\shas\sthe\sclass\s<tt>Wish</tt>,\sother\sscripts\sthe\scapitalized\sscript\sname).\sThere\sis\sno\sseparate\ssystem-wide\sTk\sconfiguration\sfile;\son\sX11\sthe\sresource\sdatabase\sis\sthat\smechanism.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
J status Closed
K 3f7eca5475a5ead14708b914b20f8528c1b2f293
U serhiy.storchaka
Z 169e707b62227029264037f8e2efb6df