Update Uptated-Prototype/PiperTTS-GUI-Test.py

This commit is contained in:
2025-12-09 14:03:46 -08:00
parent 4e8a83b3a2
commit 518fae8750

View File

@@ -139,11 +139,11 @@ def PiperTTS_GUI_TextFile_Open():
with open(Root_Window.filename) as f: with open(Root_Window.filename) as f:
try: try:
Cursor_Position = Input_Box.index(INSERT) Cursor_Position = Input_Box.index(INSERT)
else: except:
print("Fucked up on the first part.") print("Fucked up on the first part.")
try: try:
Input_Box.insert("Cursor_Position", f.read()) Input_Box.insert("Cursor_Position", f.read())
else: except:
print("Fucked up on the 2nd part.") print("Fucked up on the 2nd part.")
else: else:
print("Canceled file dialog.") print("Canceled file dialog.")