[pygtk] Popup always on top of everything
sandbox_mail at yahoo.de
sandbox_mail at yahoo.de
Tue Nov 17 01:05:29 WST 2009
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, sandbox_mail at yahoo.de 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
More information about the pygtk
mailing list