From cb0586743b29bbab4dd031da1349397372844931 Mon Sep 17 00:00:00 2001 From: "DHR.Mike" Date: Thu, 11 Dec 2025 12:51:44 -0800 Subject: [PATCH] Update Uptated-Prototype/PiperTTS-GUI-Test.py --- Uptated-Prototype/PiperTTS-GUI-Test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Uptated-Prototype/PiperTTS-GUI-Test.py b/Uptated-Prototype/PiperTTS-GUI-Test.py index b13254a..5e0f50e 100644 --- a/Uptated-Prototype/PiperTTS-GUI-Test.py +++ b/Uptated-Prototype/PiperTTS-GUI-Test.py @@ -226,12 +226,18 @@ except: print("Mkay did not work.") # def OnKeyPress(event): + start_time = time.time() Test_var.set("There are {}, lines".format(len(Input_Box.get("1.0","end-1c").splitlines()))) print("The Binding Function Was Called!") + end_time = time.time() + print(f'Elapsed Time: {end_time - start_time} seconds') # def OnKeyPress2nd(event): + start_time = time.time() print("displaylines:", Input_Box.count("1.0", "end", "displaylines")) print("lines:", Input_Box.count("1.0", "end", "lines")) + end_time = time.time() + print(f'Elapsed Time: {end_time - start_time} seconds') # Input_Box.bind("", OnKeyPress2nd) Input_Box.bind("", OnKeyPress)