[Add] New GUI from Shiina
This commit is contained in:
36
vrct_gui/config_window/ConfigWindow.py
Normal file
36
vrct_gui/config_window/ConfigWindow.py
Normal file
@@ -0,0 +1,36 @@
|
||||
from .widgets import createConfigWindowTitle, createSettingBoxTitle, createSideMenuAndSettingsBoxContainers
|
||||
|
||||
from customtkinter import CTkToplevel
|
||||
|
||||
from ..ui_utils import setDefaultActiveTab
|
||||
|
||||
from config import config
|
||||
|
||||
class ConfigWindow(CTkToplevel):
|
||||
def __init__(self, vrct_gui, settings):
|
||||
super().__init__()
|
||||
|
||||
self.INPUT_MIC_RECORD_TIMEOUT = 3
|
||||
self.INPUT_SOURCE_LANG = "aaaaaaaaa"
|
||||
self.INPUT_SPEAKER_ENERGY_THRESHOLD = 300
|
||||
self.MAX_SPEAKER_ENERGY_THRESHOLD = 4000
|
||||
self.INPUT_MIC_PHRASE_TIMEOUT = 3
|
||||
|
||||
|
||||
# configure window
|
||||
self.title("test config_window.py")
|
||||
self.geometry(f"{1080}x{680}")
|
||||
|
||||
|
||||
self.configure(fg_color="#ff7f50")
|
||||
self.protocol("WM_DELETE_WINDOW", vrct_gui.closeConfigWindow)
|
||||
|
||||
|
||||
|
||||
|
||||
createConfigWindowTitle(config_window=self, settings=settings)
|
||||
|
||||
createSettingBoxTitle(config_window=self, settings=settings)
|
||||
|
||||
|
||||
createSideMenuAndSettingsBoxContainers(config_window=self, settings=settings)
|
||||
Reference in New Issue
Block a user