[PyKDE] LCD problems

Phil Thompson phil at river-bank.demon.co.uk
Wed Aug 7 19:51:01 BST 2002


fredrik danerklint wrote:

> Hi!
> 
> I've just start to lern python and PyQT, so this is probably an easy question 
> which I haven't find any solution to...
> 
> What I would like to happen is to make sure that the LCD display gets updated 
> from the thread. So, how do I do that?


Change...


        self.w.LCDNumber1.display(self.i)


...to...

        qApp.lock()
        self.w.LCDNumber1.display(self.i)

         qApp.unlock()

Phil








More information about the PyQt mailing list