diff --git a/Uptated-Prototype/PiperTTS-GUI-Test.py b/Uptated-Prototype/PiperTTS-GUI-Test.py index be1c7e3..fb45ffa 100644 --- a/Uptated-Prototype/PiperTTS-GUI-Test.py +++ b/Uptated-Prototype/PiperTTS-GUI-Test.py @@ -39,8 +39,8 @@ except: # Attempts to create a Input box try: - Input_Box = Text(Input_Box_Frame) - Input_Box.pack(padx=20, pady=20, expand = True, fill = "both") + Input_Box = Text(Input_Box_Frame, selectbackground="yellow", selectforeground="black", undo=True) + Input_Box.pack(padx=5, pady=5, expand = True, fill = "both") except: 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.") ''' # Creating Buttons -#C_Button_Clipboard = Button(Controls_Box_Frame, text="📋", pady=10, padx=10, command=PiperTTS_GUI_Clipboard) -C_Button_Play = Button(Controls_Box_Frame, text="▶", pady=10, padx=10, command=PiperTTS_GUI_Play) -C_Button_Pause = Button(Controls_Box_Frame, text="⏸", pady=10, padx=10, command=PiperTTS_GUI_Pause) -C_Button_Stop = Button(Controls_Box_Frame, text="⏹", pady=10, padx=10, command=PiperTTS_GUI_Stop) -C_Button_previous = Button(Controls_Box_Frame, text="⏮", pady=10, padx=10, command=PiperTTS_GUI_Previous) -C_Button_Next = Button(Controls_Box_Frame, text="⏭", pady=10, padx=10, command=PiperTTS_GUI_Next) +#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=5, padx=5, command=PiperTTS_GUI_Play) +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=5, padx=5, command=PiperTTS_GUI_Stop) +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=5, padx=5, command=PiperTTS_GUI_Next) # Creating a Test Text Label 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.add_seperator() 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 Root_Window.mainloop()