[PyQt] Re: PyQt

Jim Bublitz jbublitz at nwinternet.com
Thu Mar 6 01:03:35 GMT 2008


On Wednesday 05 March 2008 16:29, Jon Chambers wrote:
> Thanks for the speedy responses!
> I'm now trying to create a non-paintEvent function that calls an update if
> necessary. But now when i do
>
> self.connect(self.timer, QtCore.SIGNAL('timeout()'), self.pollJoysticks())

Remove the parens from self.pollJoysticks () - you want the address of the 
method, not to call the method. Should be:

    self.connect (  ... self.pollJoysticks)

Jim


More information about the PyQt mailing list