remove resizeEvent
This commit is contained in:
parent
12df083eef
commit
ce01220370
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue