diff --git a/Uptated-Prototype/PiperTTS-GUI-Test.py b/Uptated-Prototype/PiperTTS-GUI-Test.py index def2280..8771f8a 100644 --- a/Uptated-Prototype/PiperTTS-GUI-Test.py +++ b/Uptated-Prototype/PiperTTS-GUI-Test.py @@ -230,11 +230,13 @@ def OnKeyPress(event): print("The Binding Function Was Called!") # def OnKeyPress2nd(event): - result = Input_Box.count("1.0", "end-1c", "displaylines") + result = Input_Box.count("1.0", "end-1c", "displaylines")[0] print(result) print("The 2nd Binding Function Was Called!") # Input_Box.bind("", OnKeyPress2nd) +Input_Box.bind("", OnKeyPress) + # My_Test_Label2 = Label(Controls_Box_Frame, textvariable=Test_var) #My_Test_Label2["value"] = Test_var