GameSentenceMiner 2.8.44__py3-none-any.whl → 2.8.45__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- GameSentenceMiner/notification.py +9 -11
- {gamesentenceminer-2.8.44.dist-info → gamesentenceminer-2.8.45.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.8.44.dist-info → gamesentenceminer-2.8.45.dist-info}/RECORD +7 -7
- {gamesentenceminer-2.8.44.dist-info → gamesentenceminer-2.8.45.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.8.44.dist-info → gamesentenceminer-2.8.45.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.8.44.dist-info → gamesentenceminer-2.8.45.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.8.44.dist-info → gamesentenceminer-2.8.45.dist-info}/top_level.txt +0 -0
@@ -10,22 +10,20 @@ if is_windows():
|
|
10
10
|
|
11
11
|
from GameSentenceMiner.configuration import logger
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
if is_windows():
|
14
|
+
class MyToastNotifier(ToastNotifier):
|
15
|
+
def __init__(self):
|
16
|
+
super().__init__()
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
18
|
+
def on_destroy(self, hwnd, msg, wparam, lparam):
|
19
|
+
super().on_destroy(hwnd, msg, wparam, lparam)
|
20
|
+
return 0
|
20
21
|
|
21
|
-
|
22
|
-
if system == "Windows":
|
22
|
+
if is_windows():
|
23
23
|
notifier = MyToastNotifier()
|
24
24
|
else:
|
25
25
|
notifier = notification
|
26
26
|
|
27
|
-
windows = system == "Windows"
|
28
|
-
|
29
27
|
|
30
28
|
def open_anki_card(note_id):
|
31
29
|
url = "http://localhost:8765"
|
@@ -51,7 +49,7 @@ def open_anki_card(note_id):
|
|
51
49
|
|
52
50
|
|
53
51
|
def send_notification(title, message, timeout):
|
54
|
-
if
|
52
|
+
if is_windows():
|
55
53
|
notifier.show_toast(title, message, duration=timeout, threaded=True)
|
56
54
|
else:
|
57
55
|
notification.notify(
|
@@ -7,7 +7,7 @@ GameSentenceMiner/ffmpeg.py,sha256=sf_Wz4ijFOYKRZI4qhRc32Y9E2zZuPscLv_VU8ZYCHU,1
|
|
7
7
|
GameSentenceMiner/gametext.py,sha256=hcyZQ69B7xB5ZG85wLzM5au7ZPKxmeUXsmUD26oyk_0,5660
|
8
8
|
GameSentenceMiner/gsm.py,sha256=dZt2Gnwqwj-i-yRpGJWBmCBRaBjEUCzi3L3P-gcVkfA,27266
|
9
9
|
GameSentenceMiner/model.py,sha256=1lRyJFf_LND_4O16h8CWVqDfosLgr0ZS6ufBZ3qJHpY,5699
|
10
|
-
GameSentenceMiner/notification.py,sha256=
|
10
|
+
GameSentenceMiner/notification.py,sha256=pXKoLfmRQLH55IQ5G6uxdMuczqX7D6l3ubVEY1e6hXg,2859
|
11
11
|
GameSentenceMiner/obs.py,sha256=a-zLd7FrfI8fBiv5IfR-3pZYwqRJI_hUElzlZauaL40,14500
|
12
12
|
GameSentenceMiner/obs_back.py,sha256=_N_UV7Nh5cyy3mnH5lOUOzhgZwHMACeFEuBo1Z-bNzg,10894
|
13
13
|
GameSentenceMiner/package.py,sha256=YlS6QRMuVlm6mdXx0rlXv9_3erTGS21jaP3PNNWfAH0,1250
|
@@ -54,9 +54,9 @@ GameSentenceMiner/web/static/web-app-manifest-512x512.png,sha256=wyqgCWCrLEUxSRX
|
|
54
54
|
GameSentenceMiner/web/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
55
55
|
GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
|
56
56
|
GameSentenceMiner/web/templates/utility.html,sha256=P659ZU2j7tcbJ5xPO3p7E_SQpkp3CrrFtSvvXJNNuLI,16330
|
57
|
-
gamesentenceminer-2.8.
|
58
|
-
gamesentenceminer-2.8.
|
59
|
-
gamesentenceminer-2.8.
|
60
|
-
gamesentenceminer-2.8.
|
61
|
-
gamesentenceminer-2.8.
|
62
|
-
gamesentenceminer-2.8.
|
57
|
+
gamesentenceminer-2.8.45.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
58
|
+
gamesentenceminer-2.8.45.dist-info/METADATA,sha256=HMMLNjDZHUVreaBB4CU8-4flglKt6MzQUtXd1yLl92w,7218
|
59
|
+
gamesentenceminer-2.8.45.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
60
|
+
gamesentenceminer-2.8.45.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
61
|
+
gamesentenceminer-2.8.45.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
62
|
+
gamesentenceminer-2.8.45.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|