The run_and_close() routine creates another mainloop to run the dialog.
This mainloop will finish when the dialog is closed or one of the buttons
is pressed.  You probably shouldn't connect a handler that calls
mainquit() to one of the dialog's widgets, as this may cause problems with
the run_and_close() function.  Calling mainquit() outside of the
run_and_close() call should make the outer mainloop return though.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Thu, 21 Oct 1999, Jozsa Kristof wrote:

> On Thu, Oct 21, 1999 at 06:30:12PM +0200, Jozsa Kristof wrote:
> > destroy the dialog box; and do mainquit(). Trying it out it works fine when
> > there's no dialog opened. If the dialog box was opened it'll shut down as
> > expected; but mainquit() does not end the application (it closes the main
> > window but i do not get back the prompt where the python script was started
> > from). I dont really know what I'm doing wrong in that case..
> 
> oh well and it was started using run_and_close(). I dunno if that matters or
> not..
> 
> Christopher
> -- 
> +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-: .~. :-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ 
> | Christopher Jozsa               /V\    Veszprem Linux Users Group |
> | [EMAIL PROTECTED]             /( )\       student of IT, Hungary |
> +-=-=-=-=-=-=-=-=-=-=-=-=-=-=--: ^^-^^ :--=-=-=-=-=-=-=-=-=-=-=-=-=-+
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to