[pygtk] Moving two windows at the same time

Daniel Hernández Bahr dbahr at estudiantes.uci.cu
Thu Dec 4 16:34:12 WST 2008


I' ll test that as soon as i can .. thanks a lot ..

Best Regards ..

----- Original Message -----
From: "Walter Leibbrandt" <walter at translate.org.za>
To: "Daniel Hernández Bahr" <dbahr at estudiantes.uci.cu>
Cc: "pygtk" <pygtk at daa.com.au>
Sent: Thursday, December 4, 2008 3:28:57 AM (GMT-0500) Auto-Detected
Subject: Re: [pygtk] Moving two windows at the same time

Hi,

When a window is moved it fires the "configure-event" signal (from 
gtk.Widget). You can connect to that signal and move your dialog to the 
window's new location. The downside is that "configure-event" isn't 
fired _while_ moving a window, only afterwards.

http://pygtk.org/docs/pygtk/class-gtkwidget.html#signal-gtkwidget--configure-event

Regards,

Walter

Daniel Hernández Bahr wrote:
> Hello everybody ..
>
> Is there any way in PyGtk to move two windows at the same time?
>
> The thing is, having a window and a modal dialog transient for that 
> window, how can i (the program) move the dialog if the user moves de 
> window, like binding them together .. ??
>
> Cheers!!
>
> -- 
> Daniel Hernández Bahr
> Universidad de las Ciencias Informáticas.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/

-- 
Walter Leibbrandt                  http://translate.org.za/blogs/walter
Software Developer                                  +27 12 460 1095 (w)
Translate.org.za

Recent blogs:
* Things that changed the way I code
http://www.translate.org.za/blogs/walter/en/content/things-changed-way-i-code
* Switching from Subversion to git
* The first official release of Spelt





-- 

Daniel Hernández Bahr 
Universidad de las Ciencias Informáticas. 



More information about the pygtk mailing list