diff --git a/Uptated-Prototype/PiperTTS-GUI-Test.py b/Uptated-Prototype/PiperTTS-GUI-Test.py index c06e0d2..36a1577 100644 --- a/Uptated-Prototype/PiperTTS-GUI-Test.py +++ b/Uptated-Prototype/PiperTTS-GUI-Test.py @@ -138,6 +138,10 @@ def PiperTTS_GUI_TextFile_Open(): with open(Root_Window.filename) as f: Cursor_Position = Input_Box.index(INSERT) Input_Box.insert(Cursor_Position, f.read()) + MyTestText = Input_Box.get("1.0","end-1c") + MyTestText2 = "There are {}, lines".format(len(MyTestText.splitlines())) + My_Test_Label2["text"] = MyTestText2 + else: print("Canceled file dialog.") except: @@ -202,7 +206,7 @@ My_Test_Label.grid(row=0, column=0, columnspan=4) try: try: MyTestText = Input_Box.get("1.0","end-1c") - MyTestText2 = len(MyTestText.splitlines()) + MyTestText2 = "There are {}, lines".format(len(MyTestText.splitlines())) except: print("Fuckup again.") except: