Update Uptated-Prototype/PiperTTS-GUI-Test.py

This commit is contained in:
2025-12-03 02:38:05 -08:00
parent fa37d48fe6
commit 73d321af6d

View File

@@ -39,8 +39,8 @@ except:
# Attempts to create a Input box # Attempts to create a Input box
try: try:
Input_Box = Text(Input_Box_Frame) Input_Box = Text(Input_Box_Frame, selectbackground="yellow", selectforeground="black", undo=True)
Input_Box.pack(padx=20, pady=20, expand = True, fill = "both") Input_Box.pack(padx=5, pady=5, expand = True, fill = "both")
except: except:
print("An exception occurred - when creating input box.") print("An exception occurred - when creating input box.")
@@ -119,12 +119,12 @@ def PiperTTS_GUI_Hide_All_Labels():
print("An exception occurred - when attempting to hide previous messages.") print("An exception occurred - when attempting to hide previous messages.")
''' '''
# Creating Buttons # Creating Buttons
#C_Button_Clipboard = Button(Controls_Box_Frame, text="📋", pady=10, padx=10, command=PiperTTS_GUI_Clipboard) #C_Button_Clipboard = Button(Controls_Box_Frame, text="📋", pady=5, padx=5, command=PiperTTS_GUI_Clipboard)
C_Button_Play = Button(Controls_Box_Frame, text="", pady=10, padx=10, command=PiperTTS_GUI_Play) C_Button_Play = Button(Controls_Box_Frame, text="", pady=5, padx=5, command=PiperTTS_GUI_Play)
C_Button_Pause = Button(Controls_Box_Frame, text="", pady=10, padx=10, command=PiperTTS_GUI_Pause) C_Button_Pause = Button(Controls_Box_Frame, text="", pady=5, padx=5, command=PiperTTS_GUI_Pause)
C_Button_Stop = Button(Controls_Box_Frame, text="", pady=10, padx=10, command=PiperTTS_GUI_Stop) C_Button_Stop = Button(Controls_Box_Frame, text="", pady=5, padx=5, command=PiperTTS_GUI_Stop)
C_Button_previous = Button(Controls_Box_Frame, text="", pady=10, padx=10, command=PiperTTS_GUI_Previous) C_Button_previous = Button(Controls_Box_Frame, text="", pady=5, padx=5, command=PiperTTS_GUI_Previous)
C_Button_Next = Button(Controls_Box_Frame, text="", pady=10, padx=10, command=PiperTTS_GUI_Next) C_Button_Next = Button(Controls_Box_Frame, text="", pady=5, padx=5, command=PiperTTS_GUI_Next)
# Creating a Test Text Label # Creating a Test Text Label
My_Test_Label = Label(Controls_Box_Frame, text="Test Text?", anchor="center") My_Test_Label = Label(Controls_Box_Frame, text="Test Text?", anchor="center")
@@ -149,6 +149,20 @@ File_Toolbar.addcommand(label="Open")
File_Toolbar.addcommand(label="Save") File_Toolbar.addcommand(label="Save")
File_Toolbar.add_seperator() File_Toolbar.add_seperator()
File_Toolbar.addcommand(label="Exit", command=Root_Window.quit) File_Toolbar.addcommand(label="Exit", command=Root_Window.quit)
#Creating Playback menu for Toolbar
Playback_Toolbar = menu(Root_Toolbar, tearoff=False)
Root_Toolbar.add_cascade(label="Playback", menu=Playback_Toolbar)
Playback_Toolbar.addcommand(label="", command=PiperTTS_GUI_Play)
Playback_Toolbar.addcommand(label="", command=PiperTTS_GUI_Pause)
Playback_Toolbar.addcommand(label="", command=PiperTTS_GUI_Stop)
Playback_Toolbar.addcommand(label="", command=PiperTTS_GUI_Previous)
Playback_Toolbar.addcommand(label="", command=PiperTTS_GUI_Next)
#Creating Tools menu for Toolbar
Tools_Toolbar = menu(Root_Toolbar, tearoff=False)
Root_Toolbar.add_cascade(label="Tools", menu=Tools_Toolbar)
Tools_Toolbar.addcommand(label="Prefrences")
# End of Code - Emd of Tkinter loop # End of Code - Emd of Tkinter loop
Root_Window.mainloop() Root_Window.mainloop()