reading X resources from Tkinter

Martin von Loewis loewis at informatik.hu-berlin.de
Fri Dec 8 15:34:15 EST 2000


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?

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).

You can emulate most of that yourself, except that Tk does not expose
XGetWindowProperty which you'd need to get at RESOURCE_MANAGER property.

Regards,
Martin




More information about the Python-list mailing list