Hello Walter,
once again thank you for your input. Your approach sounds like a good idea.

But which gtk signals can I use to get informed that the main window is 
minimized or put to background using alt+tab or by clicking on another 
application's window or the user changed his desktop by clicking or 
pressing ctrl+alt+arrow?

Thanks,
freddy

Walter Leibbrandt schrieb:
> Op 13/11/2009 20:08, [email protected] het geskryf:
>> Dear all,
>> I cannot find any information how to solve the following problem:
>>
>> In a window I have an entry. In order to support the user when writing
>> into this entry I display a gtk.Window(gtk.WINDOW_POPUP) that looks like
>> a tooltip underneath the entry whenever the user enters something wrong.
>>
>> My problem is that the popup window stays on top of any window and not
>> only my application.
>>
>> How can I tell pygtk that the popup should always be on top of my
>> application but should not be on top of other windows?
> The work-around we use in Virtaal, is to manage the popup window's 
> visibility in a manual way, ie. when the main window is shown/hidden, 
> show/hide the popup too (if appropriate). If you're interested in 
> looking at our approach, see 
> https://translate.svn.sourceforge.net/svnroot/translate/src/trunk/virtaal/virtaal/plugins/tm/tmwidgets.py
>  
> for the popup window and 
> https://translate.svn.sourceforge.net/svnroot/translate/src/trunk/virtaal/virtaal/plugins/tm/tmview.py
>  
> for the main window.
> 
> The popup is still not 100% "connected" to the main window (there are 
> still some weird artifacts), but it helps a lot.
> 
> HTH,


        
                
___________________________________________________________ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to