On Mon, Jun 14, 2004 at 10:08:14AM +0100, Prash wrote: > 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.
As Danny wrote, you need to use the set_transient_for() method, which ensures precisely that behaviour. > > dialog = ...get_widget(whatever) > > dialog.set_transient_for(window) > > dialog.run() > > dialog.hide() Take care, -- Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
