Update Uptated-Prototype/PiperTTS-GUI-Test.py
This commit is contained in:
@@ -230,11 +230,13 @@ def OnKeyPress(event):
|
|||||||
print("The Binding Function Was Called!")
|
print("The Binding Function Was Called!")
|
||||||
#
|
#
|
||||||
def OnKeyPress2nd(event):
|
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(result)
|
||||||
print("The 2nd Binding Function Was Called!")
|
print("The 2nd Binding Function Was Called!")
|
||||||
#
|
#
|
||||||
Input_Box.bind("<Return>", OnKeyPress2nd)
|
Input_Box.bind("<Return>", OnKeyPress2nd)
|
||||||
|
Input_Box.bind("<Alt-KeyPress-Return>", 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