sandbox_m...@yahoo.de wrote:
> 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?

Assuming your dialog window is 'w' and your popup window is 'p', do this 
before showing 'p':

   def configure_popup(popup, parent):
       popup.window.set_keep_above(False)
       popup.set_transient_for(parent)

   p.connect_after('map', configure_popup, w)

This should, at least on win32 where I tested it, give you a popup 
window that stays above the specific parent window rather than everything.

-- 
Tim Evans
Applied Research Associates NZ
http://www.aranz.com/
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to