diff --git a/Uptated-Prototype/PiperTTS-GUI-Test.py b/Uptated-Prototype/PiperTTS-GUI-Test.py index 2725375..b90f862 100644 --- a/Uptated-Prototype/PiperTTS-GUI-Test.py +++ b/Uptated-Prototype/PiperTTS-GUI-Test.py @@ -1,5 +1,5 @@ from tkinter import * -#from tkinter import ttk +from tkinter import ttk from tkinter import filedialog import atexit import random @@ -135,7 +135,7 @@ def PiperTTS_GUI_TextFile_Open(): try: Root_Window.filename = filedialog.askopenfilename(initialdir = "./",title = "Select file",filetypes = (("Text files","*.txt"),("all files","*.*"))) print(Root_Window.filename) - if not Root_Window.filename: + if Root_Window.filename: with open(Root_Window.filename) as f: Cursor_Position = Input_Box.index(INSERT) Input_Box.insert("Cursor_Position", f.read()) @@ -211,18 +211,18 @@ 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_1 = ttk.Combobox(Prefrences_Frame) GUI_Combobox_2_Label = Label(Prefrences_Frame, text="Voice?") -GUI_Combobox_2 = Combobox(Prefrences_Frame) +GUI_Combobox_2 = ttk.Combobox(Prefrences_Frame) GUI_Spinbox_1_Label = Label(Prefrences_Frame, text="volume?") -GUI_Spinbox_1 = Spinbox(Prefrences_Frame, from_ = 1, to = 100) +GUI_Spinbox_1 = ttk.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_2 = ttk.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_3 = ttk.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?") +GUI_Spinbox_4 = ttk.Spinbox(Prefrences_Frame, from_ = 1.0, to = 2.0) +GUI_Checkbutton_1 = ttk.Checkbutton(Prefrences_Frame, text="normalize_audio?") # Prefrences placement GUI_Combobox_1_Label.pack() GUI_Combobox_1.pack()