Skip to content

Commit

Permalink
Merge pull request #21 from sosiax/patch-1
Browse files Browse the repository at this point in the history
Updating track.py - PyQt5 methods
  • Loading branch information
frans-fuerst authored Mar 4, 2020
2 parents 4988d2f + 582adb9 commit c60345d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions track.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def event(self, event):
def restore_window(self, reason):
with track_base.frame_grabber(log()):

if reason == QtGui.QSystemTrayIcon.DoubleClick:
if reason == QtWidgets.QSystemTrayIcon.DoubleClick:
self.tray_icon.hide()
# self.showNormal will restore the window even if it was
# minimized.
Expand Down Expand Up @@ -222,7 +222,7 @@ def sigint_handler(s, window):
sig_name = "SIGTERM"
log().info("got signal %s (%s)", sig_name, str(s))
window.cleanup()
QtGui.QApplication.quit()
QtWidgets.QApplication.quit()


def parse_arguments(argv: List[str]) -> argparse.Namespace:
Expand Down

0 comments on commit c60345d

Please sign in to comment.