[Chore] remove the print code that is under vrct_gui directory.
This commit is contained in:
@@ -3,7 +3,6 @@ from customtkinter import CTkFont, CTkFrame, CTkLabel, CTkSwitch
|
|||||||
def _createSettingBoxCompactModeButton(parent_widget, config_window, settings, view_variable):
|
def _createSettingBoxCompactModeButton(parent_widget, config_window, settings, view_variable):
|
||||||
|
|
||||||
def switchConfigWindowCompactMode():
|
def switchConfigWindowCompactMode():
|
||||||
print(config_window.setting_box_compact_mode_switch_box.get())
|
|
||||||
if config_window.setting_box_compact_mode_switch_box.get() is True:
|
if config_window.setting_box_compact_mode_switch_box.get() is True:
|
||||||
if callable(view_variable.CALLBACK_ENABLE_CONFIG_WINDOW_COMPACT_MODE) is True:
|
if callable(view_variable.CALLBACK_ENABLE_CONFIG_WINDOW_COMPACT_MODE) is True:
|
||||||
view_variable.CALLBACK_ENABLE_CONFIG_WINDOW_COMPACT_MODE()
|
view_variable.CALLBACK_ENABLE_CONFIG_WINDOW_COMPACT_MODE()
|
||||||
|
|||||||
@@ -32,19 +32,16 @@ def createSidebarLanguagesSettings(settings, main_window, view_variable):
|
|||||||
|
|
||||||
|
|
||||||
def switchToPreset1(e):
|
def switchToPreset1(e):
|
||||||
print("1")
|
|
||||||
callFunctionIfCallable(view_variable.CALLBACK_SELECTED_LANGUAGE_PRESET_TAB, "1")
|
callFunctionIfCallable(view_variable.CALLBACK_SELECTED_LANGUAGE_PRESET_TAB, "1")
|
||||||
target_active_widget = getattr(main_window, "sls__presets_button_1")
|
target_active_widget = getattr(main_window, "sls__presets_button_1")
|
||||||
switchPresetTabFunction(target_active_widget)
|
switchPresetTabFunction(target_active_widget)
|
||||||
|
|
||||||
def switchToPreset2(e):
|
def switchToPreset2(e):
|
||||||
print("2")
|
|
||||||
callFunctionIfCallable(view_variable.CALLBACK_SELECTED_LANGUAGE_PRESET_TAB, "2")
|
callFunctionIfCallable(view_variable.CALLBACK_SELECTED_LANGUAGE_PRESET_TAB, "2")
|
||||||
target_active_widget = getattr(main_window, "sls__presets_button_2")
|
target_active_widget = getattr(main_window, "sls__presets_button_2")
|
||||||
switchPresetTabFunction(target_active_widget)
|
switchPresetTabFunction(target_active_widget)
|
||||||
|
|
||||||
def switchToPreset3(e):
|
def switchToPreset3(e):
|
||||||
print("3")
|
|
||||||
callFunctionIfCallable(view_variable.CALLBACK_SELECTED_LANGUAGE_PRESET_TAB, "3")
|
callFunctionIfCallable(view_variable.CALLBACK_SELECTED_LANGUAGE_PRESET_TAB, "3")
|
||||||
target_active_widget = getattr(main_window, "sls__presets_button_3")
|
target_active_widget = getattr(main_window, "sls__presets_button_3")
|
||||||
switchPresetTabFunction(target_active_widget)
|
switchPresetTabFunction(target_active_widget)
|
||||||
|
|||||||
@@ -11,25 +11,21 @@ def createTextbox(settings, main_window, view_variable):
|
|||||||
main_window.current_active_textbox.grid()
|
main_window.current_active_textbox.grid()
|
||||||
|
|
||||||
def switchToTextboxAll(e):
|
def switchToTextboxAll(e):
|
||||||
print("switchToTextboxAll")
|
|
||||||
target_active_widget = getattr(main_window, "textbox_tab_all")
|
target_active_widget = getattr(main_window, "textbox_tab_all")
|
||||||
switchTextboxTabFunction(target_active_widget)
|
switchTextboxTabFunction(target_active_widget)
|
||||||
switchTextbox("textbox_all")
|
switchTextbox("textbox_all")
|
||||||
|
|
||||||
def switchToTextboxSent(e):
|
def switchToTextboxSent(e):
|
||||||
print("switchToTextboxSent")
|
|
||||||
target_active_widget = getattr(main_window, "textbox_tab_sent")
|
target_active_widget = getattr(main_window, "textbox_tab_sent")
|
||||||
switchTextboxTabFunction(target_active_widget)
|
switchTextboxTabFunction(target_active_widget)
|
||||||
switchTextbox("textbox_sent")
|
switchTextbox("textbox_sent")
|
||||||
|
|
||||||
def switchToTextboxReceived(e):
|
def switchToTextboxReceived(e):
|
||||||
print("switchToTextboxReceived")
|
|
||||||
target_active_widget = getattr(main_window, "textbox_tab_received")
|
target_active_widget = getattr(main_window, "textbox_tab_received")
|
||||||
switchTextboxTabFunction(target_active_widget)
|
switchTextboxTabFunction(target_active_widget)
|
||||||
switchTextbox("textbox_received")
|
switchTextbox("textbox_received")
|
||||||
|
|
||||||
def switchToTextboxSystem(e):
|
def switchToTextboxSystem(e):
|
||||||
print("switchToTextboxSystem")
|
|
||||||
target_active_widget = getattr(main_window, "textbox_tab_system")
|
target_active_widget = getattr(main_window, "textbox_tab_system")
|
||||||
switchTextboxTabFunction(target_active_widget)
|
switchTextboxTabFunction(target_active_widget)
|
||||||
switchTextbox("textbox_system")
|
switchTextbox("textbox_system")
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ from types import SimpleNamespace
|
|||||||
|
|
||||||
class ColorThemeManager():
|
class ColorThemeManager():
|
||||||
def __init__(self, theme):
|
def __init__(self, theme):
|
||||||
print(theme)
|
|
||||||
self.main = SimpleNamespace()
|
self.main = SimpleNamespace()
|
||||||
self.config_window = SimpleNamespace()
|
self.config_window = SimpleNamespace()
|
||||||
self.selectable_language_window = SimpleNamespace()
|
self.selectable_language_window = SimpleNamespace()
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ from types import SimpleNamespace
|
|||||||
class UiScalingManager():
|
class UiScalingManager():
|
||||||
def __init__(self, scaling_percentage):
|
def __init__(self, scaling_percentage):
|
||||||
scaling_float = int(scaling_percentage.replace("%", "")) / 100
|
scaling_float = int(scaling_percentage.replace("%", "")) / 100
|
||||||
print(scaling_float)
|
|
||||||
self.SCALING_FLOAT = max(scaling_float, 0.4)
|
self.SCALING_FLOAT = max(scaling_float, 0.4)
|
||||||
self.main = SimpleNamespace()
|
self.main = SimpleNamespace()
|
||||||
self.config_window = SimpleNamespace()
|
self.config_window = SimpleNamespace()
|
||||||
|
|||||||
Reference in New Issue
Block a user