[pygtk] Event ordering

Yang Zhang yanghatespam at gmail.com
Sun Jan 25 05:05:31 WST 2009


Hi, I'm trying to position a pop-up Window to always be directly under 
an Entry box, but I'm not sure what signal(s) to react to.

For instance, I tried entry.connect_after('focus-in-event', ...) to 
handle the initial positioning (I also hide the window on 
'focus-out-event'), and that mostly seems to work, but if I resize the 
window, the reaction is too early since the geometry of the entry is not 
yet fully updated.  How can I handle this situation appropriately?
-- 
Yang Zhang
http://www.mit.edu/~y_z/


More information about the pygtk mailing list