From 4c21b774512cee68a7de238bd0370d71401269fb Mon Sep 17 00:00:00 2001 From: "DHR.Mike" Date: Tue, 9 Dec 2025 14:55:23 -0800 Subject: [PATCH] Update Uptated-Prototype/PiperTTS-GUI-Test.py --- Uptated-Prototype/PiperTTS-GUI-Test.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Uptated-Prototype/PiperTTS-GUI-Test.py b/Uptated-Prototype/PiperTTS-GUI-Test.py index a779d21..21a217e 100644 --- a/Uptated-Prototype/PiperTTS-GUI-Test.py +++ b/Uptated-Prototype/PiperTTS-GUI-Test.py @@ -200,10 +200,25 @@ C_Button_Next = Button(Controls_Box_Frame, text="⏭", pady=5, padx=5, command=P My_Test_Label = Label(Controls_Box_Frame, text="Test Text?") My_Test_Label.grid(row=0, column=0, columnspan=4) try: - global MyTestText = "There are {} Lines of text".format(len(Input_Box.get("1.0","end-1c").readlines())) + try: + print(Input_Box.get("1.0","end-1c")) + except: + print("1 Fuckup.") + try: + MyTestText = Input_Box.get("1.0","end-1c") + except: + print("2 Fuckup.") + try: + print(MyTestText) + except: + print("3 Fuckup.") + try: + MyTestText = "There are {} Lines of text".format(len(MyTestText.readlines())) + except: + print("4 Fuckup.") except: print("An exception occurred - trying to count like dracula.") -My_Test_Labe2 = Label(Controls_Box_Frame, text=MyTestText) +My_Test_Labe2 = Label(Controls_Box_Frame, textvariable=MyTestText) My_Test_Label.grid(row=2, column=0, columnspan=4) # Aligning Buttons to grid