Hi,

Am Montag, den 21.11.2005, 16:08 -0500 schrieb Thierry Lam:
> Let's say I have a main window which has a File menu. When I click on
> the File menu and the open button, I have a File Chooser window which
> comes in front of my main window.  How do I make the main window
> unselectable?  That is, the only window I should be able to select at
> this point is the File Chooser window while the main one is greyed
> out.

Set the dialog modal. Easiest to do it just to call "run()" on the
dialog.

Note that this is a little different from what you described. You can
still minimize/move/... the main window, but the events will be ignored
as long as the file dialog is open. Which is nice :)

> 
> Thanks
> Thierry
> 
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