Yesterday I bound gtk.gdk.get_default_root_window(), gtk.gdk.screen_width(), etc.
Matt On Mon, Oct 01, 2001 at 03:34:18PM -0500, Skip Montanaro wrote: > > (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 _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
