Skip to content

Commit

Permalink
remove resizeEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
892768447 committed Mar 21, 2019
1 parent 12df083 commit ce01220
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Demo/CircleLine.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def __init__(self, *args, **kwargs):
self._canDraw = True
self._firstDraw = True
self._timer = QTimer(self, timeout=self.update)
self.init()

def init(self):
points.clear()
Expand All @@ -129,10 +130,6 @@ def init(self):
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
Expand Down

0 comments on commit ce01220

Please sign in to comment.