reading X resources from Tkinter

Mike Clarkson support at internetdiscovery.com
Sat Dec 9 18:40:00 EST 2000


On 08 Dec 2000 21:34:15 +0100, Martin von Loewis
<loewis at informatik.hu-berlin.de> wrote:

>guy at obstruction.com (Guy Middleton) writes:
>
>> It's not clear to me (maybe I am not reading carefully enough) if one can
>> query the X resources directly, or if you can copy X resources into the
>> option database.  Is this possible?

You can't query the X resources directly, but you can override then
with the [option add] command.

>I believe that's not possible. The X resource database is an Xt
>feature, and Tk does not use Xt (nor does it emulate access to the
>resource database).

No that's not true. Look at the Tk documentation for the option
command.

Mike.



More information about the Python-list mailing list