[Chore] Config Window: config.py, CTkScrollableDropdownのimport文を削除
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
from customtkinter import CTkOptionMenu, CTkFont, CTkFrame, CTkLabel, CTkRadioButton, CTkEntry, CTkSlider, CTkSwitch, CTkCheckBox, CTkProgressBar, END as CTK_END, StringVar, IntVar
|
||||
from ctk_scrollable_dropdown import CTkScrollableDropdown
|
||||
from customtkinter import CTkOptionMenu, CTkFont, CTkFrame, CTkLabel, CTkRadioButton, CTkEntry, CTkSlider, CTkSwitch, CTkCheckBox, CTkProgressBar, END as CTK_END
|
||||
|
||||
from vrct_gui.ui_utils import createButtonWithImage
|
||||
|
||||
from typing import Union
|
||||
|
||||
|
||||
class _SettingBoxGenerator():
|
||||
def __init__(self, config_window, settings):
|
||||
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
from customtkinter import StringVar, IntVar
|
||||
|
||||
from utils import callFunctionIfCallable
|
||||
|
||||
from .._SettingBoxGenerator import _SettingBoxGenerator
|
||||
|
||||
from config import config
|
||||
|
||||
def createSettingBox_AdvancedSettings(setting_box_wrapper, config_window, settings):
|
||||
sbg = _SettingBoxGenerator(config_window, settings)
|
||||
createSettingBoxEntry = sbg.createSettingBoxEntry
|
||||
|
||||
@@ -2,8 +2,6 @@ from utils import callFunctionIfCallable
|
||||
|
||||
from .._SettingBoxGenerator import _SettingBoxGenerator
|
||||
|
||||
from config import config
|
||||
|
||||
def createSettingBox_Appearance(setting_box_wrapper, config_window, settings):
|
||||
sbg = _SettingBoxGenerator(config_window, settings)
|
||||
createSettingBoxDropdownMenu = sbg.createSettingBoxDropdownMenu
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
from customtkinter import StringVar, IntVar
|
||||
|
||||
from utils import callFunctionIfCallable
|
||||
|
||||
from .._SettingBoxGenerator import _SettingBoxGenerator
|
||||
|
||||
from config import config
|
||||
|
||||
def createSettingBox_Others(setting_box_wrapper, config_window, settings):
|
||||
sbg = _SettingBoxGenerator(config_window, settings)
|
||||
createSettingBoxCheckbox = sbg.createSettingBoxCheckbox
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
from time import sleep
|
||||
|
||||
from customtkinter import StringVar, IntVar
|
||||
|
||||
from utils import callFunctionIfCallable
|
||||
|
||||
from .._SettingBoxGenerator import _SettingBoxGenerator
|
||||
|
||||
|
||||
def createSettingBox_Mic(setting_box_wrapper, config_window, settings):
|
||||
sbg = _SettingBoxGenerator(config_window, settings)
|
||||
createSettingBoxDropdownMenu = sbg.createSettingBoxDropdownMenu
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
from time import sleep
|
||||
|
||||
from customtkinter import StringVar, IntVar
|
||||
|
||||
from utils import callFunctionIfCallable
|
||||
|
||||
from .._SettingBoxGenerator import _SettingBoxGenerator
|
||||
|
||||
from config import config
|
||||
|
||||
def createSettingBox_Speaker(setting_box_wrapper, config_window, settings):
|
||||
sbg = _SettingBoxGenerator(config_window, settings)
|
||||
createSettingBoxDropdownMenu = sbg.createSettingBoxDropdownMenu
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
from customtkinter import StringVar, IntVar
|
||||
|
||||
from utils import callFunctionIfCallable
|
||||
|
||||
from .._SettingBoxGenerator import _SettingBoxGenerator
|
||||
|
||||
from config import config
|
||||
|
||||
def createSettingBox_Translation(setting_box_wrapper, config_window, settings):
|
||||
sbg = _SettingBoxGenerator(config_window, settings)
|
||||
createSettingBoxEntry = sbg.createSettingBoxEntry
|
||||
|
||||
Reference in New Issue
Block a user