Update Uptated-Prototype/PiperTTS-GUI-Test.py
This commit is contained in:
@@ -229,7 +229,13 @@ def OnKeyPress(event):
|
|||||||
Test_var.set("There are {}, lines".format(len(Input_Box.get("1.0","end-1c").splitlines())))
|
Test_var.set("There are {}, lines".format(len(Input_Box.get("1.0","end-1c").splitlines())))
|
||||||
print("The Binding Function Was Called!")
|
print("The Binding Function Was Called!")
|
||||||
#
|
#
|
||||||
Input_Box.bind("<KeyPress-KP_Enter>", 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("<KP_Enter>", OnKeyPress)
|
||||||
#
|
#
|
||||||
My_Test_Label2 = Label(Controls_Box_Frame, textvariable=Test_var)
|
My_Test_Label2 = Label(Controls_Box_Frame, textvariable=Test_var)
|
||||||
#My_Test_Label2["value"] = Test_var
|
#My_Test_Label2["value"] = Test_var
|
||||||
|
|||||||
Reference in New Issue
Block a user