remove resizeEvent

This commit is contained in:
Irony 2019-03-21 23:03:12 +08:00
parent 12df083eef
commit ce01220370

View file

@ -119,6 +119,7 @@ class CircleLineWindow(QWidget):
self._canDraw = True self._canDraw = True
self._firstDraw = True self._firstDraw = True
self._timer = QTimer(self, timeout=self.update) self._timer = QTimer(self, timeout=self.update)
self.init()
def init(self): def init(self):
points.clear() points.clear()
@ -129,10 +130,6 @@ class CircleLineWindow(QWidget):
points.append(Circle('', self.screenWidth, self.screenHeight)) points.append(Circle('', self.screenWidth, self.screenHeight))
self.update() self.update()
def resizeEvent(self, event):
super(CircleLineWindow, self).resizeEvent(event)
self.init()
def showEvent(self, event): def showEvent(self, event):
super(CircleLineWindow, self).showEvent(event) super(CircleLineWindow, self).showEvent(event)
self._canDraw = True self._canDraw = True