Pietro Battiston
Sat, 30 Jan 2010 15:38:39 -0800
Il giorno sab, 30/01/2010 alle 23.07 +0100, Pablo Recio Quijano ha scritto: > > > 2010/1/30 Pietro Battiston <too...@email.it> > Il giorno sab, 30/01/2010 alle 20.36 +0100, Pablo Recio > Quijano ha > scritto: > > Hi. > > > > > > I have a code more or less like: > > > > > > while ...: #some comprobations > > # other stuffs > > R = round_result.roundResult() #a dialog object > > response = R.result_dialog.run() > > if response == 13: #13 is the ID of button to close > > R.result_dialog.destroy() > > > Could you try adding the line > gtk.main_iteration(False) > at the end? > > > It doesn't work neither.
You're right, that processes only one event; try with:
while gtk.events_pending():
gtk.main_iteration(False)
Pietro
_______________________________________________
pygtk mailing list pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/