Skip to content Skip to sidebar Skip to footer

Pyqt4 - Timer.timeout.connect() - Cannot Find Reference

from PyQt4 import QtGui, QtCore from code.pair import Pair from code.breadth_first_search import breadth_first_search import functools class Ghosts(QtGui.QGraphicsPixmapItem):

Solution 1:

You made a very common mistake. Nothing holds a link to your timer, so it gets deleted after chaise function ends. Replace timer with self.timer.


Post a Comment for "Pyqt4 - Timer.timeout.connect() - Cannot Find Reference"