[pygtk] Dialog hide method doesnt hide at the moment

Pietro Battiston toobaz at email.it
Sun Jan 31 07:38:14 WST 2010


Il giorno sab, 30/01/2010 alle 23.07 +0100, Pablo Recio Quijano ha
scritto:
> 
> 
> 2010/1/30 Pietro Battiston <toobaz a 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




More information about the pygtk mailing list