Skip to content

Commit

Permalink
added the official webiste
Browse files Browse the repository at this point in the history
  • Loading branch information
LetMeFly666 committed Oct 1, 2022
1 parent 5d77e76 commit ba2bab6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DesktopTimer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Author: LetMeFly
Date: 2022-09-13 09:17:12
LastEditors: LetMeFly
LastEditTime: 2022-09-13 11:08:20
LastEditTime: 2022-10-01 20:03:45
'''
import sys
import time
Expand Down Expand Up @@ -96,6 +96,7 @@ def mouseReleaseEvent(self, e: QMouseEvent):
startpauseAction = menu.addAction("Start")
menu.addSeparator()
aboutAction = menu.addAction("About")
websiteAction = menu.addAction("Website")
quitAction = menu.addAction("Exit")
action = menu.exec_(self.mapToGlobal(e.pos()))
if action == startpauseAction:
Expand All @@ -112,6 +113,8 @@ def mouseReleaseEvent(self, e: QMouseEvent):
selected = QMessageBox.question(self, "About", self.about, QMessageBox.Yes | QMessageBox.Cancel)
if selected == QMessageBox.Yes:
webbrowser.open('https://letmefly.xyz/?from=MyTimer', new=0, autoraise=True)
if action == websiteAction:
webbrowser.open('https://desktoptimer.letmefly.xyz/?from=DesktopTimerApp', new=0, autoraise=True)


if __name__ == "__main__":
Expand Down

0 comments on commit ba2bab6

Please sign in to comment.