Update Uptated-Prototype/PiperTTS-GUI-Test.py
This commit is contained in:
@@ -37,7 +37,8 @@ def PiperTTS_GUI_Play():
|
|||||||
try:
|
try:
|
||||||
PiperTTS_GUI_Hide_All_Labels()
|
PiperTTS_GUI_Hide_All_Labels()
|
||||||
My_Label = Label(Root_Window, text="Playing?").grid(row=3, column=0, columnspan=5)
|
My_Label = Label(Root_Window, text="Playing?").grid(row=3, column=0, columnspan=5)
|
||||||
global labels.append(My_Label)
|
global labels = []
|
||||||
|
labels.append(My_Label)
|
||||||
C_Button_Pause["state"] == "normal"
|
C_Button_Pause["state"] == "normal"
|
||||||
C_Button_Pause["state"] = "disabled"
|
C_Button_Pause["state"] = "disabled"
|
||||||
except:
|
except:
|
||||||
@@ -49,7 +50,8 @@ def PiperTTS_GUI_Pause():
|
|||||||
try:
|
try:
|
||||||
PiperTTS_GUI_Hide_All_Labels()
|
PiperTTS_GUI_Hide_All_Labels()
|
||||||
My_Label = Label(Root_Window, text="Pause?").grid(row=3, column=0, columnspan=5)
|
My_Label = Label(Root_Window, text="Pause?").grid(row=3, column=0, columnspan=5)
|
||||||
global labels.append(My_Label)
|
global labels = []
|
||||||
|
labels.append(My_Label)
|
||||||
C_Button_Pause["state"] == "disabled"
|
C_Button_Pause["state"] == "disabled"
|
||||||
C_Button_Pause["state"] = "normal"
|
C_Button_Pause["state"] = "normal"
|
||||||
except:
|
except:
|
||||||
@@ -61,7 +63,8 @@ def PiperTTS_GUI_Stop():
|
|||||||
try:
|
try:
|
||||||
PiperTTS_GUI_Hide_All_Labels()
|
PiperTTS_GUI_Hide_All_Labels()
|
||||||
My_Label = Label(Root_Window, text="Stop?").grid(row=3, column=0, columnspan=5)
|
My_Label = Label(Root_Window, text="Stop?").grid(row=3, column=0, columnspan=5)
|
||||||
global labels.append(My_Label)
|
global labels = []
|
||||||
|
labels.append(My_Label)
|
||||||
except:
|
except:
|
||||||
print("An exception occurred - when pressing Stop Button.")
|
print("An exception occurred - when pressing Stop Button.")
|
||||||
|
|
||||||
@@ -71,7 +74,8 @@ def PiperTTS_GUI_Previous():
|
|||||||
try:
|
try:
|
||||||
PiperTTS_GUI_Hide_All_Labels()
|
PiperTTS_GUI_Hide_All_Labels()
|
||||||
My_Label = Label(Root_Window, text="Previous?").grid(row=3, column=0, columnspan=5)
|
My_Label = Label(Root_Window, text="Previous?").grid(row=3, column=0, columnspan=5)
|
||||||
global labels.append(My_Label)
|
global labels = []
|
||||||
|
labels.append(My_Label)
|
||||||
except:
|
except:
|
||||||
print("An exception occurred - when pressing Previous Button.")
|
print("An exception occurred - when pressing Previous Button.")
|
||||||
|
|
||||||
@@ -81,7 +85,8 @@ def PiperTTS_GUI_Next():
|
|||||||
try:
|
try:
|
||||||
PiperTTS_GUI_Hide_All_Labels()
|
PiperTTS_GUI_Hide_All_Labels()
|
||||||
My_Label = Label(Root_Window, text="Next?").grid(row=3, column=0, columnspan=5)
|
My_Label = Label(Root_Window, text="Next?").grid(row=3, column=0, columnspan=5)
|
||||||
global labels.append(My_Label)
|
global labels = []
|
||||||
|
labels.append(My_Label)
|
||||||
except:
|
except:
|
||||||
print("An exception occurred - when pressing Next Button.")
|
print("An exception occurred - when pressing Next Button.")
|
||||||
|
|
||||||
@@ -91,7 +96,8 @@ def PiperTTS_GUI_Clipboard():
|
|||||||
try:
|
try:
|
||||||
PiperTTS_GUI_Hide_All_Labels()
|
PiperTTS_GUI_Hide_All_Labels()
|
||||||
My_Label = Label(Root_Window, text="Clipboard?").grid(row=3, column=0, columnspan=5)
|
My_Label = Label(Root_Window, text="Clipboard?").grid(row=3, column=0, columnspan=5)
|
||||||
global labels.append(My_Label)
|
global labels = []
|
||||||
|
labels.append(My_Label)
|
||||||
except:
|
except:
|
||||||
print("An exception occurred - when pressing Clipboard Button.")
|
print("An exception occurred - when pressing Clipboard Button.")
|
||||||
|
|
||||||
@@ -100,7 +106,7 @@ def PiperTTS_GUI_Clipboard():
|
|||||||
def PiperTTS_GUI_Hide_All_Labels():
|
def PiperTTS_GUI_Hide_All_Labels():
|
||||||
try:
|
try:
|
||||||
for label in labels:
|
for label in labels:
|
||||||
global label.destroy()
|
label.destroy()
|
||||||
except:
|
except:
|
||||||
print("An exception occurred - when attempting to hide previous messages.")
|
print("An exception occurred - when attempting to hide previous messages.")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user