Re: [pygtk] gtk.Window.get_position()

2003-09-19 Thread Christian Reis
On Fri, Sep 19, 2003 at 10:37:05AM +0200, [EMAIL PROTECTED] wrote: I've a Window with a TextView, and I want to display another window (a popup winow) near the cursor position of the TextView. So I've calculate the cursor position with the buffer_to_window_coords() method and then I try to use

Re: [pygtk] gtk.Window.get_position()

2003-09-19 Thread James Henstridge
On 19/09/03 16:37, [EMAIL PROTECTED] wrote: Hi to all, I've a Window with a TextView, and I want to display another window (a popup winow) near the cursor position of the TextView. So I've calculate the cursor position with the buffer_to_window_coords() method and then I try to use the method

Re:[pygtk] gtk.Window.get_position()

2003-09-19 Thread m3tr0
Hi James and Christian, The position of the window is relative to the parent window. If you want the position relative to the root window, you can use the get_root_origin() method. James. I'm a bit confused: get_root_origin() reqires a gdk.Window but I've a gtk.Window, so how can I obtain

Re: [pygtk] gtk.Window.get_position()

2003-09-19 Thread Christian Reis
On Fri, Sep 19, 2003 at 05:13:47PM +0200, [EMAIL PROTECTED] wrote: Hi James and Christian, The position of the window is relative to the parent window. If you want the position relative to the root window, you can use the get_root_origin() method. James. I'm a bit confused: