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

This commit is contained in:
2025-12-09 13:57:21 -08:00
parent a5cf1cd15a
commit a48c418d3f

View File

@@ -138,8 +138,9 @@ def PiperTTS_GUI_TextFile_Open():
print(type(Root_Window.filename)) print(type(Root_Window.filename))
if Root_Window.filename: if Root_Window.filename:
with open(Root_Window.filename) as f: with open(Root_Window.filename) as f:
Cursor_Position = Input_Box.index(INSERT) print(f.read())
Input_Box.insert("Cursor_Position", f.read()) #Cursor_Position = Input_Box.index(INSERT)
#Input_Box.insert("Cursor_Position", f.read())
else: else:
print("Canceled file dialog.") print("Canceled file dialog.")
except: except: