Hi,

Am Mon, den 14.06.2004 um 10:08 Uhr +0100 schrieb Prash:
> Sorry for replying late, Danny.
> 
> How do I do this in glade? I'e selected "top level" in dialog type and
> it is modal. They cant do anything on main window until they've closed
> the dialog. But when someone clicks on the main window the dialog box
> goes behind the window. I want the dialog box to always remain on top.
> 

dialog = ...get_widget("whateverdialog")
window = ...get_widget("mainwindow")
dialog.set_transient_for(window) # this is the command that does it
r = dialog.run()
dialog.hide()

this marks the dialog window transient, that is, it is related to the
window "window" in a way that when "window" is minimized, "dialog" is
too, restore likewise, and when "window" is activated, "dialog" is
(actually) activated...

So it will stay in foreground. But you can for example drag the main
window around even when the dialog window is open if you like, which is
cool ;)



cheers,
   Danny

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

_______________________________________________
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