Update Uptated-Prototype/PiperTTS-GUI-Test.py
This commit is contained in:
@@ -26,13 +26,16 @@ try:
|
||||
Input_Box_Frame = Frame(Root_Window)
|
||||
except:
|
||||
print("An exception occurred - when creating input Frame.")
|
||||
|
||||
# Attempts to create a Controls Frame
|
||||
try:
|
||||
Controls_Box_Frame = Frame(Root_Window)
|
||||
except:
|
||||
print("An exception occurred - when creating Controls Frame.")
|
||||
|
||||
# Attempts to create a Prefrences Frame
|
||||
try:
|
||||
Prefrences_Frame = Frame(Root_Window)
|
||||
except:
|
||||
print("An exception occurred - when creating Controls Frame.")
|
||||
# Attempts to Place Input and Controls frames
|
||||
try:
|
||||
Input_Box_Frame.place(x = 0, y = 0, relwidth = 1, relheight = 0.7)
|
||||
@@ -162,7 +165,8 @@ def PiperTTS_GUI_Randomize_Text():
|
||||
def PiperTTS_GUI_Set_Prefrences():
|
||||
try:
|
||||
Input_Box_Frame.place_forget()
|
||||
Controls_Box_Frame.place_forget()
|
||||
Controls_Box_Frame.place_forget()
|
||||
Prefrences_Frame.place(x = 0, y = 0, relwidth = 1, relheight = 1)
|
||||
except:
|
||||
print("An exception occurred - when Setting prefrences.")
|
||||
|
||||
@@ -205,6 +209,35 @@ C_Button_Stop.grid(row=1, column=2)
|
||||
C_Button_previous.grid(row=1, column=3)
|
||||
C_Button_Next.grid(row=1, column=4)
|
||||
|
||||
# Prefrences stuff
|
||||
GUI_Combobox_1_Label = Label(Prefrences_Frame, text="Language?")
|
||||
GUI_Combobox_1 = Combobox(Prefrences_Frame)
|
||||
GUI_Combobox_2_Label = Label(Prefrences_Frame, text="Voice?")
|
||||
GUI_Combobox_2 = Combobox(Prefrences_Frame)
|
||||
GUI_Spinbox_1_Label = Label(Prefrences_Frame, text="volume?")
|
||||
GUI_Spinbox_1 = Spinbox(Prefrences_Frame, from_ = 1, to = 100)
|
||||
GUI_Spinbox_2_Label = Label(Prefrences_Frame, text="length_scale?")
|
||||
GUI_Spinbox_2 = Spinbox(Prefrences_Frame, from_ = 1.0, to = 2.0)
|
||||
GUI_Spinbox_3_Label = Label(Prefrences_Frame, text="noise_scale?")
|
||||
GUI_Spinbox_3 = Spinbox(Prefrences_Frame, from_ = 1.0, to = 2.0)
|
||||
GUI_Spinbox_4_Label = Label(Prefrences_Frame, text="noise_w_scale?")
|
||||
GUI_Spinbox_4 = Spinbox(Prefrences_Frame, from_ = 1.0, to = 2.0)
|
||||
GUI_Checkbutton_1 = Checkbutton(Prefrences_Frame, text="normalize_audio?")
|
||||
# Prefrences placement
|
||||
GUI_Combobox_1_Label.pack()
|
||||
GUI_Combobox_1.pack()
|
||||
GUI_Combobox_2_Label.pack()
|
||||
GUI_Combobox_2.pack()
|
||||
GUI_Spinbox_1_Label.pack()
|
||||
GUI_Spinbox_1.pack()
|
||||
GUI_Spinbox_2_Label.pack()
|
||||
GUI_Spinbox_2.pack()
|
||||
GUI_Spinbox_3_Label.pack()
|
||||
GUI_Spinbox_3.pack()
|
||||
GUI_Spinbox_4_Label.pack()
|
||||
GUI_Spinbox_4.pack()
|
||||
GUI_Checkbutton_1.pack()
|
||||
|
||||
#Creating Toolbar menu
|
||||
Root_Toolbar = Menu(Root_Window)
|
||||
Root_Window.configure(menu=Root_Toolbar)
|
||||
|
||||
Reference in New Issue
Block a user