On Sun, Oct 24, 1999 at 06:21:28PM +0800, James Henstridge wrote:
> If you remove the line:
>   win.connect("delete_event", mainquit)
> Does it make any difference?  

Makes no difference at all. The gnome dialog box will be destroyed
automatically, just the program cant exit (try it).

> The call to create a GnomeAbout() widget and call run_and_close() displays
> the dialog application modal and waits til a dialog button is pressed or
> the window is closed.  (this is documented in the gnome-libs documentation
> about gnome_dialog_run and gnome_dialog_run_and_close).
> 
> If you don't want the GnomeAbout widget to be modal, use the following:
>   about = GnomeAbout(...)
>   about.set_close(TRUE)   # close the dialog when a button is pressed
>   about.show()

Using it that way it works ok; mainquit can clean up these and exit
properly. Does that mean up that modal windows cant be destroyed by mainquit
without getting in trouble? 

(I'd need modal dialog windows in my code if possible anyway.) Do you know what
gnome-python tries to do when it 'hangs' after closing the modal dialog box?

> The dialog will be destroyed when the user closes it, and you don't have
> to worry about it.

OK, it just seems to have no point having a dialog box on the screen after
the program had been quit..

Christopher
-- 
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-: .~. :-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ 
| Christopher Jozsa               /V\    Veszprem Linux Users Group |
| [EMAIL PROTECTED]             /( )\       student of IT, Hungary |
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=--: ^^-^^ :--=-=-=-=-=-=-=-=-=-=-=-=-=-+
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to