From 840cb70861589a4a9075add6958882a0822340bc Mon Sep 17 00:00:00 2001 From: "DHR.Mike" Date: Thu, 11 Dec 2025 12:02:54 -0800 Subject: [PATCH] Update Uptated-Prototype/PiperTTS-GUI-Test.py --- Uptated-Prototype/PiperTTS-GUI-Test.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Uptated-Prototype/PiperTTS-GUI-Test.py b/Uptated-Prototype/PiperTTS-GUI-Test.py index d03ea26..c34a486 100644 --- a/Uptated-Prototype/PiperTTS-GUI-Test.py +++ b/Uptated-Prototype/PiperTTS-GUI-Test.py @@ -229,7 +229,13 @@ def OnKeyPress(event): Test_var.set("There are {}, lines".format(len(Input_Box.get("1.0","end-1c").splitlines()))) print("The Binding Function Was Called!") # -Input_Box.bind("", OnKeyPress) +def OnKeyPress2nd(event): + TempText = Input_Box.get("1.0","end-1c") + result = TempText.count("0.0", "end", "displaylines")[0] + print(result) + print("The 2nd Binding Function Was Called!") +# +Input_Box.bind("", OnKeyPress) # My_Test_Label2 = Label(Controls_Box_Frame, textvariable=Test_var) #My_Test_Label2["value"] = Test_var