On Sep 11, 9:34 pm, "Diez B. Roggisch" <de...@nospam.web.de> wrote:
> DarkBlue wrote:
> > Here is some code from a pyqt4.5.4  application on python 2.6
>
> > def findData(self):
>
> >       self.ui.label.setText('Processing... ')
>
> >       # here we do something which takes a few seconds
> >       self.refreshGrid()
>
> > The problem is that the text in the self.ui.label  is only changed
> > on screen after the self.refreshGrid() has finished executing
> > rather than before.
>
> > How do I achieve the expected result ?
>
> You can make Qt process all pending events once, via
> QCoreApplication.processEvents.
>
> This should trigger the redraw.
>
> Diez

Thanks ! That helped. :)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to