Re: a lot of modal dialogs without GTK.main

2010-02-06 Thread David Nečas
On Sat, Feb 06, 2010 at 12:27:47PM +0300, Andrey Nikitin wrote: > > Explicit main loop iterations are usually a sign of desperation. > > Really? :) > Try to change your example (with finally gtk.main()) to consecutive run > several dialogs. You mean something like this? =

Re: a lot of modal dialogs without GTK.main

2010-02-06 Thread Andrey Nikitin
Здравствуйте, David Nečas. > while True: > dialog = gtk.MessageDialog(buttons=gtk.BUTTONS_OK, > message_format='Close me.') dialog.connect('response', response) > dialog.show_all() > gtk.main() > print 'Done!' > === > > Y

Re: a lot of modal dialogs without GTK.main

2010-02-06 Thread David Nečas
On Sat, Feb 06, 2010 at 12:49:43PM +0300, Andrey Nikitin wrote: > > while True: > > dialog = gtk.MessageDialog(buttons=gtk.BUTTONS_OK, > > message_format='Close me.') dialog.connect('response', response) > > dialog.show_all() > > gtk.main() > > print 'Done!' > >

Re: glib & *nix signals

2010-02-06 Thread Brian J. Tarricone
On 02/04/2010 11:11 AM, Thomas Stover wrote: > I'm looking for some notes / advise on catching SIGTERM in a glib main > loop based program. > Mainly on linux, but other kernels would be nice. This article: > > http://www.linuxjournal.com/article/2121 > > for instance, recommends masking all sign