Hi,

Am Montag, den 19.12.2005, 15:56 -0500 schrieb george young:
> [pygtk 1.99.17, python 2.4.2]
> [Yes, I know 1.99 is ancient -- I'm working on it...]
> 
> I have a Dialog which is popped up from a menu item.  I want
> to enforce that there is at most one of this type dialog extant at
> any time.  Sometimes the dialog gets hidden under other windows and 

dialog.set_transient_for(mainwindow)

then it doesn't get hidden under other windows (at least not under
_that_ window)

> the user just hits the menu entry, foretting that she already has one.
> 
> I need a way to force an existing dialog to the top of the stack.
> Dialogs apparently can't be minimized, so I don't have to worry about
> that possibility.  I tried just dia.show(), but that did not bring the
> dialog window to the top.

dia.present()

> 
> -- George Young
> 

cheers,
  Danny


_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to