[newui] [PATCH] Check that Gtk.main is not already running before starting another one
Vratislav Podzimek
vpodzime at redhat.com
Tue Aug 7 08:46:21 UTC 2012
On Mon, 2012-08-06 at 14:16 -0400, Chris Lumens wrote:
> > Could you please point me at such "elsewhere" place in the code?
> > sys.exit(0) doesn't work here. Should runQuit invoke exitHandler
> > directly?
>
> Hm, have you tried raising SystemExit from the runQuit method? I think
> that should work.
Unfortunately it doesn't work. As python's sys module documentation [1]
states:
"""
sys.exit([arg])
Exit from Python. This is implemented by raising the SystemExit
exception...
"""
and testing it proved the fact.
[1] http://docs.python.org/library/sys.html#sys.exit
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list