-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2622025
commit 578a9da
Showing
17 changed files
with
348 additions
and
142 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
anyio==4.3.0 | ||
certifi==2024.2.2 | ||
cx_Freeze==7.1.1 | ||
exceptiongroup==1.2.1 | ||
filelock==3.15.3 | ||
h11==0.14.0 | ||
httpcore==1.0.5 | ||
httpx==0.27.0 | ||
idna==3.7 | ||
infi==0.0.1 | ||
infi.systray==0.1.12 | ||
pypiwin32==223 | ||
patchelf==0.17.2.1 | ||
pypiwin32==223; platform_system == "Windows" | ||
pypresence==4.2.1 | ||
pywin32==306 | ||
pywin32==306; platform_system == "Windows" | ||
sniffio==1.3.1 | ||
typing_extensions==4.11.0 | ||
websocket-client==1.6.0 | ||
websocket-client==1.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"first_run": true, "client_id": "828083725790609459", "profile_name": "Default", "refresh_rate": 1, "display_time_left": true} | ||
{"first_run": false, "client_id": "828083725790609459", "profile_name": "Default", "refresh_rate": 1, "display_time_left": true} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from abc import ABC, abstractmethod | ||
class Notifier(ABC): | ||
@abstractmethod | ||
def notify(self) -> None: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import os | ||
from .toast_notifier import ToastNotifier | ||
from .notifier import Notifier | ||
|
||
class WindowsNotifier(Notifier): | ||
def __init__(self): | ||
self.toast = ToastNotifier() | ||
|
||
def notify(self, title: str, subtitle: str) -> None: | ||
assets_path = os.path.join(os.getcwd(), 'assets') | ||
notifier_path = os.path.join(assets_path, 'notifier') | ||
icon_path = os.path.join(notifier_path, 'icon.ico') | ||
self.toast.show_toast( | ||
title, | ||
subtitle, | ||
duration = 3, | ||
icon_path = icon_path,#os.path.join(os.getcwd(), 'icon.ico'), | ||
threaded = True, | ||
) |
Empty file.
Oops, something went wrong.