(I'm using the 2.0 API, but not yet the Gtk-less/Py2.2-compatible names.)
Given a arbitrary realized widget I can get the root window dimensions using
something like
def root_geometry(w):
gdkw = w.window
if gdkw is None:
raise ValueError, "widget does not have a window"
while gdkw.get_parent():
gdkw = gdkw.get_parent()
return gdkw.get_geometry()
Poking around manually in the gtk module I couldn't find anything that
simply referenced the root window. Do I always have to start from an
already realized widget if I want the root window dimensions on the current
display?
Thx,
Skip
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk