Skip to content

Commit

Permalink
Merge pull request #146 from listyque/patch-1
Browse files Browse the repository at this point in the history
PR: Timer should belong to parent widget
  • Loading branch information
dalthviz authored Jun 17, 2021
2 parents 076d51a + 9e6950f commit bd0251e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qtawesome/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def _update(self):
def setup(self, icon_painter, painter, rect):

if self.parent_widget not in self.info:
timer = QTimer()
timer = QTimer(self.parent_widget)
timer.timeout.connect(self._update)
self.info[self.parent_widget] = [timer, 0, self.step]
timer.start(self.interval)
Expand Down

0 comments on commit bd0251e

Please sign in to comment.