Jim Gettys writes:
> Glade clearly needs to be able to distinguish between screen configurations.
> You might need to go from one resolution to the other on the fly, and use
> a different UI to make it work properly (e.g. iPAQ screen to the much higher
> resolution on the VGA out card, for example.
Glade has no intrinsic support for screen resolutions. No matter,
though, because this works nicely:
fn = 'pygps-%dx%d.glade' % (screen_width(), screen_height())
try:
os.stat(fn)
except:
fn = 'pygps.glade'
self.widgets = libglade.GladeXML (fn, "pygps")
-- -russ nelson <sig@russnelson.com> http://russnelson.com Crynwr sells support for free software | PGPok | 521 Pleasant Valley Rd. | +1 315 268 1925 voice | #exclude <windows.h> Potsdam, NY 13676-3213 | +1 315 268 9201 FAX |Received on Wed Jun 13 2001 - 08:15:12 EDT
This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:12:27 EDT