diff --git a/Demo/CircleLine.py b/Demo/CircleLine.py index 3bd6928..11a92dc 100644 --- a/Demo/CircleLine.py +++ b/Demo/CircleLine.py @@ -119,6 +119,7 @@ class CircleLineWindow(QWidget): self._canDraw = True self._firstDraw = True self._timer = QTimer(self, timeout=self.update) + self.init() def init(self): points.clear() @@ -129,10 +130,6 @@ class CircleLineWindow(QWidget): points.append(Circle('', self.screenWidth, self.screenHeight)) self.update() - def resizeEvent(self, event): - super(CircleLineWindow, self).resizeEvent(event) - self.init() - def showEvent(self, event): super(CircleLineWindow, self).showEvent(event) self._canDraw = True