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._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