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?
Pietro
>
> The problem is that the dialog doesn't destroy in that moment.
> Instead, is destroyed in the next loops's iteration. I also tried to
> map a function to the event trigged by clicking that button, using
> hide or destroy, but doesn't work either.
>
>
> Is there any way to hide the dialog in the moment I want to? Because I
> don't understand what's happening.
>
>
> Thanks in advance.
>
> --
> Pablo Recio Quijano
>
> Estudiante de Ingeniería Informática (UCA)
> Becario en Alquimia Proyectos Digitales
> Alumno colaborador del Departamento de Lenguajes y Sistemas
> Informáticos
> Participante del IV Concurso Universitario de Software Libre
>
> _______________________________________________
> pygtk mailing list [email protected]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/