[pygtk] Dialog hide method doesnt hide at the moment

Pablo Recio Quijano rikutheronin at gmail.com
Sun Jan 31 07:50:58 WST 2010


I love you man.

Thanks a lot, it works perfectly :D

2010/1/31 Pietro Battiston <toobaz at email.it>

> Il giorno sab, 30/01/2010 alle 23.07 +0100, Pablo Recio Quijano ha
> scritto:
> >
> >
> > 2010/1/30 Pietro Battiston <toobaz at 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 at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>



-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20100131/3e7417fe/attachment-0001.htm 


More information about the pygtk mailing list