I can't figure out why wnck.Window.get_geometry isn't in the python bindings.
wnck.defs contains the following (define-method get_geometry (of-object "WnckWindow") (c-name "wnck_window_get_geometry") (return-type "none") (parameters '("int*" "xp") '("int*" "yp") '("int*" "widthp") '("int*" "heightp") ) ) But that doesn't seem to result in the function turning up :-( I've only tested this on Debian Sid but I can't see any reason for it to be distro specific. The following would check if it's there: import wnck, gtk s = wnck.screen_get_default() while gtk.events_pending(): gtk.main_iteration() w = s.get_active_window() print [f for f in dir(w) if f == 'get_geometry'] On my system that results in the printing of an empty list. Any pointers on how to fix this (I've not managed to find any docs on pygtk-codegen-2.0 at all) would be much appreciated. /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) [EMAIL PROTECTED] Jabber: [EMAIL PROTECTED] http://therning.org/magnus Software is not manufactured, it is something you write and publish. Keep Europe free from software patents, we do not want censorship by patent law on written works. If you can explain how you do something, then you're very very bad at it. -- John Hopfield
pgpFHhL3Whqcn.pgp
Description: PGP signature
_______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/