Hello,

if you really need to know the absolute coordinates of widget,
read the properties from the widget's GdkWindow..

First you need to get the absolute position of the main
window ('win' is a GtkWindow here):

  x, y = (win.get_window().x, win.get_window().y)

You can get the positions of other widgets the same way.
But you still need to add the parent window's absolute
position to it.

The method 'set_uposition(x, y)' sets the absolute position of
a window and a GtkFixed widget can be used to place widgets
at absolute positions. GtkAlignment widgets may also help.


I hope, I could help.

Martin Grimme - http://www.pycage.de


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to