[PyKDE] GUI not updateing ?

Dave S eric3 at pusspaws.net
Sun Sep 24 12:30:07 BST 2006


On Sunday 24 September 2006 12:16, Detlev Offenbach wrote:
> On Sunday 24 September 2006 12:55, Dave S wrote:
> > My main window has a progress bar in it. When I click a button my script
> > starts a thread for a backend script that takes some time to run.
> >
> > The backend script passes data including its progress to my main script
> > via a FIFO, now I have a problem.
> >
> > The FIFO is providing progress data that is being written to the GUI with
> > self.progressBar1.setProgress(pc, 100) but nothing is being shown until
> > my script exits.
> >
> > So the GUI is not updated while I am in a while loop looking for FIFO
> > data ? If so how do you guys get around this ?
>
> Try QApplication.processEvents() after the setProgress call.
>
> Detlev

Thanks for that - I will give it a go :)

Dave




More information about the PyQt mailing list