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

This commit is contained in:
2025-12-09 15:43:45 -08:00
parent 3e7c9c6de1
commit ec259228ad

View File

@@ -138,10 +138,10 @@ def PiperTTS_GUI_TextFile_Open():
with open(Root_Window.filename) as f: with open(Root_Window.filename) as f:
Cursor_Position = Input_Box.index(INSERT) Cursor_Position = Input_Box.index(INSERT)
Input_Box.insert(Cursor_Position, f.read()) Input_Box.insert(Cursor_Position, f.read())
MyTestText = Input_Box.get("1.0","end-1c") #MyTestText = Input_Box.get("1.0","end-1c")
MyTestText2 = "There are {}, lines".format(len(MyTestText.splitlines())) #MyTestText2 = "There are {}, lines".format(len(MyTestText.splitlines()))
My_Test_Label2["text"] = MyTestText2 #My_Test_Label2["text"] = MyTestText2
Test_var.set("There are {}, lines".format(len(Input_Box.get("1.0","end-1c").splitlines())))
else: else:
print("Canceled file dialog.") print("Canceled file dialog.")
except: except: