Update Uptated-Prototype/PiperTTS-GUI-Test.py
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
from tkinter import *
|
from tkinter import *
|
||||||
#from tkinter import ttk
|
from tkinter import ttk
|
||||||
from tkinter import filedialog
|
from tkinter import filedialog
|
||||||
import atexit
|
import atexit
|
||||||
import random
|
import random
|
||||||
@@ -135,7 +135,7 @@ def PiperTTS_GUI_TextFile_Open():
|
|||||||
try:
|
try:
|
||||||
Root_Window.filename = filedialog.askopenfilename(initialdir = "./",title = "Select file",filetypes = (("Text files","*.txt"),("all files","*.*")))
|
Root_Window.filename = filedialog.askopenfilename(initialdir = "./",title = "Select file",filetypes = (("Text files","*.txt"),("all files","*.*")))
|
||||||
print(Root_Window.filename)
|
print(Root_Window.filename)
|
||||||
if not Root_Window.filename:
|
if Root_Window.filename:
|
||||||
with open(Root_Window.filename) as f:
|
with open(Root_Window.filename) as f:
|
||||||
Cursor_Position = Input_Box.index(INSERT)
|
Cursor_Position = Input_Box.index(INSERT)
|
||||||
Input_Box.insert("Cursor_Position", f.read())
|
Input_Box.insert("Cursor_Position", f.read())
|
||||||
@@ -211,18 +211,18 @@ C_Button_Next.grid(row=1, column=4)
|
|||||||
|
|
||||||
# Prefrences stuff
|
# Prefrences stuff
|
||||||
GUI_Combobox_1_Label = Label(Prefrences_Frame, text="Language?")
|
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_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_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_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_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_Label = Label(Prefrences_Frame, text="noise_w_scale?")
|
||||||
GUI_Spinbox_4 = Spinbox(Prefrences_Frame, from_ = 1.0, to = 2.0)
|
GUI_Spinbox_4 = ttk.Spinbox(Prefrences_Frame, from_ = 1.0, to = 2.0)
|
||||||
GUI_Checkbutton_1 = Checkbutton(Prefrences_Frame, text="normalize_audio?")
|
GUI_Checkbutton_1 = ttk.Checkbutton(Prefrences_Frame, text="normalize_audio?")
|
||||||
# Prefrences placement
|
# Prefrences placement
|
||||||
GUI_Combobox_1_Label.pack()
|
GUI_Combobox_1_Label.pack()
|
||||||
GUI_Combobox_1.pack()
|
GUI_Combobox_1.pack()
|
||||||
|
|||||||
Reference in New Issue
Block a user