GameSentenceMiner 2.18.7__py3-none-any.whl → 2.18.8__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/ui/anki_confirmation.py +4 -2
- {gamesentenceminer-2.18.7.dist-info → gamesentenceminer-2.18.8.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.18.7.dist-info → gamesentenceminer-2.18.8.dist-info}/RECORD +7 -7
- {gamesentenceminer-2.18.7.dist-info → gamesentenceminer-2.18.8.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.18.7.dist-info → gamesentenceminer-2.18.8.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.18.7.dist-info → gamesentenceminer-2.18.8.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.18.7.dist-info → gamesentenceminer-2.18.8.dist-info}/top_level.txt +0 -0
|
@@ -18,6 +18,8 @@ class AnkiConfirmationDialog(tk.Toplevel):
|
|
|
18
18
|
super().__init__(parent)
|
|
19
19
|
self.config_app = config_app
|
|
20
20
|
self.screenshot_timestamp = screenshot_timestamp
|
|
21
|
+
self.translation_text = None
|
|
22
|
+
self.sentence_text = None
|
|
21
23
|
|
|
22
24
|
# Initialize screenshot_path here, will be updated by button if needed
|
|
23
25
|
self.screenshot_path = screenshot_path
|
|
@@ -226,13 +228,13 @@ class AnkiConfirmationDialog(tk.Toplevel):
|
|
|
226
228
|
# Clean up audio before closing
|
|
227
229
|
self._cleanup_audio()
|
|
228
230
|
# The screenshot_path is now correctly updated if the user chose a new one
|
|
229
|
-
self.result = (True, self.sentence_text.get("1.0", tk.END).strip(), self.translation_text.get("1.0", tk.END).strip(), self.screenshot_path)
|
|
231
|
+
self.result = (True, self.sentence_text.get("1.0", tk.END).strip(), self.translation_text.get("1.0", tk.END).strip() if self.translation_text else None, self.screenshot_path)
|
|
230
232
|
self.destroy()
|
|
231
233
|
|
|
232
234
|
def _on_no_voice(self):
|
|
233
235
|
# Clean up audio before closing
|
|
234
236
|
self._cleanup_audio()
|
|
235
|
-
self.result = (False, self.sentence_text.get("1.0", tk.END).strip(), self.translation_text.get("1.0", tk.END).strip(), self.screenshot_path)
|
|
237
|
+
self.result = (False, self.sentence_text.get("1.0", tk.END).strip(), self.translation_text.get("1.0", tk.END).strip() if self.translation_text else None, self.screenshot_path)
|
|
236
238
|
self.destroy()
|
|
237
239
|
|
|
238
240
|
def _on_cancel(self):
|
|
@@ -36,7 +36,7 @@ GameSentenceMiner/tools/furigana_filter_preview.py,sha256=BXv7FChPEJW_VeG5XYt6su
|
|
|
36
36
|
GameSentenceMiner/tools/ss_selector.py,sha256=ob2oJdiYreDMMau7CvsglpnhZ1CDnJqop3lV54-PjRo,4782
|
|
37
37
|
GameSentenceMiner/tools/window_transparency.py,sha256=GtbxbmZg0-UYPXhfHff-7IKZyY2DKe4B9GdyovfmpeM,8166
|
|
38
38
|
GameSentenceMiner/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
|
-
GameSentenceMiner/ui/anki_confirmation.py,sha256=
|
|
39
|
+
GameSentenceMiner/ui/anki_confirmation.py,sha256=S3gN4hr2wZVazWr3F3xYybsaClpkugq3nwYKxIEYRLE,10840
|
|
40
40
|
GameSentenceMiner/ui/config_gui.py,sha256=4baqfL33oMshmqm903GZok32Y4JIEV-3K9gf5gxAJDU,152131
|
|
41
41
|
GameSentenceMiner/ui/screenshot_selector.py,sha256=AKML87MpgYQeSuj1F10GngpNrn9qp06zLLzNRwrQWM8,8900
|
|
42
42
|
GameSentenceMiner/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -125,9 +125,9 @@ GameSentenceMiner/web/templates/components/kanji_grid/thousand_character_classic
|
|
|
125
125
|
GameSentenceMiner/web/templates/components/kanji_grid/wanikani_levels.json,sha256=8wjnnaYQqmho6t5tMxrIAc03512A2tYhQh5dfsQnfAM,11372
|
|
126
126
|
GameSentenceMiner/web/templates/components/kanji_grid/words_hk_frequency_list.json,sha256=wRkqZNPzz6DT9OTPHpXwfqW96Qb96stCQNNgOL-ZdKk,17535
|
|
127
127
|
GameSentenceMiner/wip/__init___.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
128
|
-
gamesentenceminer-2.18.
|
|
129
|
-
gamesentenceminer-2.18.
|
|
130
|
-
gamesentenceminer-2.18.
|
|
131
|
-
gamesentenceminer-2.18.
|
|
132
|
-
gamesentenceminer-2.18.
|
|
133
|
-
gamesentenceminer-2.18.
|
|
128
|
+
gamesentenceminer-2.18.8.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
129
|
+
gamesentenceminer-2.18.8.dist-info/METADATA,sha256=Te9wJkpNUZGU2Vm4ALzEL3ygz-hDDrpMIQSD2QoFhho,7487
|
|
130
|
+
gamesentenceminer-2.18.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
131
|
+
gamesentenceminer-2.18.8.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
|
132
|
+
gamesentenceminer-2.18.8.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
|
133
|
+
gamesentenceminer-2.18.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|