Re: [Tutor] Exiting a PyGTK main loop

2008-09-20 Thread Chris Fuller
Defer the quit until the mainloop is running again. something like self.connect('event-after', gtk.main_quit) Cheers On Friday 19 September 2008 17:16, Bart Cramer wrote: > Dear all, > > I am a bit stuck in a small project, trying to quit a PyGTK program. > Here are some relevant snippets: > >

[Tutor] Exiting a PyGTK main loop

2008-09-19 Thread Bart Cramer
Dear all, I am a bit stuck in a small project, trying to quit a PyGTK program. Here are some relevant snippets: def init_gui (self) : self.window = gtk.Window (gtk.WINDOW_TOPLEVEL) self.window.connect ("delete_event", self.