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