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,
-- 
Walter Leibbrandt                  Software Developer
Recent blogs:
* Ubuntu PPA for Translate Toolkit and Virtaal
http://www.translate.org.za/blogs/walter/en/content/ubuntu-ppa-translate-toolkit-and-virtaal

_______________________________________________
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