From c287df5c10175a577d54acfe916b08eba1064ecf Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Sun, 1 Oct 2023 13:28:37 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[bugfix/Refactor]=20Config=20Window:=20Sett?= =?UTF-8?q?ing=20Box=E5=91=A8=E3=82=8A=E3=80=82=E8=AC=8E=E3=81=AE1px?= =?UTF-8?q?=E3=83=90=E3=82=B0=E4=BF=AE=E6=AD=A3(=E7=84=A1=E7=90=86?= =?UTF-8?q?=E3=82=84=E3=82=8A)=E3=81=A8=E3=80=81=E8=A6=81=E7=B4=A0?= =?UTF-8?q?=E3=81=AE=E5=B9=85=E3=81=8C=E5=90=88=E3=81=A3=E3=81=A6=E3=81=8A?= =?UTF-8?q?=E3=82=89=E3=81=9A=E3=80=81=E6=96=87=E5=AD=97=E6=95=B0=E3=81=AA?= =?UTF-8?q?=E3=81=A9=E3=81=AE=E5=BD=B1=E9=9F=BF=E3=81=AB=E3=82=88=E3=82=8A?= =?UTF-8?q?=E5=B9=85=E3=81=8C=E5=BA=83=E3=81=8F=E3=81=AA=E3=82=8A=E3=80=81?= =?UTF-8?q?=E6=84=8F=E5=9B=B3=E3=81=97=E3=81=A6=E3=81=84=E3=81=AA=E3=81=84?= =?UTF-8?q?=E7=B7=9A=E3=81=8C=E8=A6=8B=E3=81=88=E3=81=A6=E3=81=84=E3=81=9F?= =?UTF-8?q?=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3=E3=80=82=20(row=E3=82=84co?= =?UTF-8?q?lumn,=20sticky=E6=8C=87=E5=AE=9A=E3=80=81=E3=82=BB=E3=82=AF?= =?UTF-8?q?=E3=82=B7=E3=83=A7=E3=83=B3=E3=82=BF=E3=82=A4=E3=83=88=E3=83=AB?= =?UTF-8?q?=E3=81=AE=E6=8C=87=E5=AE=9A=E6=96=B9=E6=B3=95=E3=81=AE=E5=A4=89?= =?UTF-8?q?=E6=9B=B4=E3=81=AA=E3=81=A9=E3=80=82)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_createSettingBoxContainer.py | 59 +++++++++---------- .../_SettingBoxGenerator.py | 58 +++++++++--------- 2 files changed, 59 insertions(+), 58 deletions(-) diff --git a/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/_createSettingBoxContainer.py b/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/_createSettingBoxContainer.py index 6467786a..66b089f0 100644 --- a/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/_createSettingBoxContainer.py +++ b/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/_createSettingBoxContainer.py @@ -5,56 +5,55 @@ def _createSettingBoxContainer(config_window, settings, view_variable, setting_b def createSectionTitle(container_widget, var_section_title): - setting_box_wrapper_section_title_frame = CTkFrame(container_widget, corner_radius=0, fg_color=settings.ctm.MAIN_BG_COLOR, width=0, height=0) setting_box_wrapper_section_title = CTkLabel( - setting_box_wrapper_section_title_frame, + container_widget, textvariable=var_section_title, anchor="w", height=0, font=CTkFont(family=settings.FONT_FAMILY, size=settings.uism.SB__SECTION_TITLE_FONT_SIZE, weight="normal"), text_color=settings.ctm.LABELS_TEXT_COLOR ) - setting_box_wrapper_section_title.grid(row=0, column=0, padx=0, pady=settings.uism.SB__SECTION_TITLE_BOTTOM_PADY) + setting_box_wrapper_section_title.place(relx=0, rely=0) + # setting_box_wrapper_section_title.grid(row=0, column=0, padx=0, pady=settings.uism.SB__SECTION_TITLE_BOTTOM_PADY) - return setting_box_wrapper_section_title_frame + return container_widget # Setting box container setting_box_container_widget = CTkFrame(config_window.main_setting_box_bg_wrapper, corner_radius=0, fg_color=settings.ctm.MAIN_BG_COLOR, width=0, height=0) setattr(config_window, setting_box_container_settings["setting_box_container_attr_name"], setting_box_container_widget) + setting_box_container_widget.grid(row=0, pady=settings.uism.SB__BOTTOM_MARGIN) + setting_box_container_widget.grid_remove() - - setting_boxes_length = len(setting_box_container_settings["setting_boxes"]) - setting_box_row = 0 + # setting_boxes_length = len(setting_box_container_settings["setting_boxes"]) + setting_box_row=0 for i, setting_box_setting in enumerate(setting_box_container_settings["setting_boxes"]): - SB__TOP_PADY = 0 - SB__BOTTOM_PADY = settings.uism.SB__BOTTOM_PADY - - setting_box_and_section_title_wrapper = CTkFrame(setting_box_container_widget, fg_color=settings.ctm.SB__WRAPPER_BG_COLOR, corner_radius=0, width=0, height=0) - - if setting_box_setting["var_section_title"] is not None: - setting_box_wrapper_section_title_frame= createSectionTitle( - container_widget=setting_box_and_section_title_wrapper, - var_section_title=setting_box_setting["var_section_title"], - ) - setting_box_wrapper_section_title_frame.grid(row=0, column=0, sticky="ew", padx=0, pady=0) - if i == 0: SB__TOP_PADY = settings.uism.SB__TOP_PADY_IF_WITH_SECTION_TITLE - - # if the first one of setting boxes, adjust top pady - if i == 0: SB__TOP_PADY = settings.uism.SB__TOP_PADY_IF_WITHOUT_SECTION_TITLE - - # if the last one of setting boxes, remove bottom pady - if i+1 == setting_boxes_length: SB__BOTTOM_PADY = 0 - - # setting_box_wrapper = CTkFrame(setting_box_and_section_title_wrapper, fg_color="red", corner_radius=0, width=0, height=0) - setting_box_wrapper = CTkFrame(setting_box_and_section_title_wrapper, fg_color=settings.ctm.SB__WRAPPER_BG_COLOR, corner_radius=0, width=0, height=0) - setting_box_wrapper.grid(row=1, column=0) + # Top-Padding that can be container the section title + setting_box_top_padding = CTkFrame(setting_box_container_widget, corner_radius=0, fg_color=settings.ctm.MAIN_BG_COLOR, width=0, height=60) + setting_box_top_padding.grid(row=setting_box_row, column=0, sticky="ew", padx=0, pady=0) + setting_box_top_padding.grid_columnconfigure(0, weight=1) + setting_box_row+=1 + + if setting_box_setting["var_section_title"] is not None: + setting_box_wrapper_section_title = CTkLabel( + setting_box_top_padding, + textvariable=setting_box_setting["var_section_title"], + anchor="w", + height=0, + font=CTkFont(family=settings.FONT_FAMILY, size=settings.uism.SB__SECTION_TITLE_FONT_SIZE, weight="normal"), + text_color=settings.ctm.LABELS_TEXT_COLOR + ) + setting_box_wrapper_section_title.place(relx=0, rely=0.4, anchor="nw") + + + setting_box_wrapper = CTkFrame(setting_box_container_widget, fg_color=settings.ctm.SB__WRAPPER_BG_COLOR, corner_radius=0, width=0, height=0) + setting_box_wrapper.grid(row=setting_box_row, column=0, sticky="ew") + setting_box_wrapper.grid_columnconfigure(0, weight=1) setting_box_row+=1 - setting_box_and_section_title_wrapper.grid(row=setting_box_row, column=0, sticky="ew", padx=0, pady=(SB__TOP_PADY, SB__BOTTOM_PADY)) if setting_box_setting["setting_box"] is not None: setting_box_setting["setting_box"]( diff --git a/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/_SettingBoxGenerator.py b/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/_SettingBoxGenerator.py index 0b35cbe8..8bbf6659 100644 --- a/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/_SettingBoxGenerator.py +++ b/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/_SettingBoxGenerator.py @@ -1,8 +1,11 @@ +from functools import partial +from typing import Union + from customtkinter import CTkOptionMenu, CTkFont, CTkFrame, CTkLabel, CTkRadioButton, CTkEntry, CTkSlider, CTkSwitch, CTkCheckBox, CTkProgressBar, END as CTK_END from vrct_gui.ui_utils import createButtonWithImage, getLatestWidth -from typing import Union +SETTING_BOX_COLUMN = 1 class _SettingBoxGenerator(): def __init__(self, parent_widget, config_window, settings, view_variable): @@ -12,31 +15,31 @@ class _SettingBoxGenerator(): self.settings = settings - def _createSettingBoxFrame(self, setting_box_item_frame, for_var_label_text, for_var_desc_text): + def _createSettingBoxFrame(self, for_var_label_text, for_var_desc_text): setting_box_frame = CTkFrame(self.parent_widget, corner_radius=0, fg_color=self.settings.ctm.SB__BG_COLOR, width=0, height=0) - # setting_box_frame = CTkFrame(self.parent_widget, corner_radius=0, fg_color="gray", width=0, height=0) # "pady=(0,1)" is for bottom padding. It can be removed(override) when you do like "self.attr_name.grid(row=row, pady=0)" # setting_box_frame.grid(column=0, padx=0, pady=0, sticky="ew") setting_box_frame.grid(column=0, padx=0, pady=(0,1), sticky="ew") + setting_box_frame.grid_columnconfigure(0, weight=1) # setting_box_frame_wrapper = CTkFrame(setting_box_frame, corner_radius=0, fg_color="gray", width=0, height=0) - setting_box_frame_wrapper = CTkFrame(setting_box_frame, corner_radius=0, fg_color=self.settings.ctm.SB__BG_COLOR, width=self.settings.uism.SB__MAIN_WIDTH, height=0) + setting_box_frame_wrapper = CTkFrame(setting_box_frame, corner_radius=0, fg_color=self.settings.ctm.SB__BG_COLOR, width=0, height=0) setting_box_frame_wrapper.grid(row=0, column=0, padx=self.settings.uism.SB__IPADX, pady=self.settings.uism.SB__IPADY, sticky="ew") - setting_box_frame_wrapper.grid_columnconfigure((0,1), weight=1, minsize=int(self.settings.uism.SB__MAIN_WIDTH / 2), uniform="setting_box") + setting_box_frame_wrapper.grid_columnconfigure(0, weight=0, minsize=int(self.settings.uism.SB__MAIN_WIDTH / 2)) + setting_box_frame_wrapper.grid_columnconfigure(2, weight=1, minsize=int(self.settings.uism.SB__MAIN_WIDTH / 2)) - # setting_box_frame_wrapper.grid(column=0, padx=0, pady=0) - setting_box_frame_wrapper.grid(row=0, column=0, padx=self.settings.uism.SB__IPADX, pady=self.settings.uism.SB__IPADY, sticky="nsew") + setting_box_frame_wrapper_fix_border = CTkFrame(setting_box_frame, corner_radius=0, width=0, height=0) + setting_box_frame_wrapper_fix_border.grid(row=1, column=0, sticky="ew") - setting_box_frame_wrapper_border = CTkFrame(setting_box_frame, corner_radius=0, fg_color="red", width=0, height=0) - setting_box_frame_wrapper_border.grid(row=1, column=0, sticky="ew") + setting_box_frame_wrapper_fix_border2 = CTkFrame(setting_box_frame, corner_radius=0, width=0, height=0) + setting_box_frame_wrapper_fix_border2.grid(row=0, column=1, sticky="ns") self._setSettingBoxLabels(setting_box_frame_wrapper, for_var_label_text, for_var_desc_text) - # setting_box_item_frame = CTkFrame(setting_box_frame_wrapper, corner_radius=0, width=0, height=0, fg_color="black") setting_box_item_frame = CTkFrame(setting_box_frame_wrapper, corner_radius=0, width=0, height=0, fg_color=self.settings.ctm.SB__BG_COLOR) - setting_box_item_frame.grid(row=0, column=1, padx=0, sticky="nsew") + setting_box_item_frame.grid(row=0, column=2, padx=0, sticky="nsew") setting_box_item_frame.rowconfigure((0,2), weight=1) setting_box_item_frame.grid_columnconfigure(0, weight=1) @@ -44,7 +47,6 @@ class _SettingBoxGenerator(): def _setSettingBoxLabels(self, setting_box_frame_wrapper, for_var_label_text, for_var_desc_text=None): - # setting_box_labels_frame = CTkFrame(setting_box_frame_wrapper, corner_radius=0, fg_color="black", width=0, height=0) setting_box_labels_frame = CTkFrame(setting_box_frame_wrapper, corner_radius=0, fg_color=self.settings.ctm.SB__BG_COLOR, width=0, height=0) setting_box_labels_frame.grid(row=0, column=0, padx=0, pady=0, sticky="nsew") @@ -74,7 +76,7 @@ class _SettingBoxGenerator(): def createSettingBoxDropdownMenu(self, for_var_label_text, for_var_desc_text, optionmenu_attr_name, command, variable=None, dropdown_menu_values=None): - (setting_box_frame, setting_box_item_frame) = self._createSettingBoxFrame(self, for_var_label_text, for_var_desc_text) + (setting_box_frame, setting_box_item_frame) = self._createSettingBoxFrame(for_var_label_text, for_var_desc_text) option_menu_widget = CTkOptionMenu( setting_box_item_frame, @@ -89,7 +91,7 @@ class _SettingBoxGenerator(): command=command, anchor="w", ) - option_menu_widget.grid(row=1, column=1, sticky="e") + option_menu_widget.grid(row=1, column=SETTING_BOX_COLUMN, sticky="e") setattr(self.config_window, optionmenu_attr_name, option_menu_widget) return setting_box_frame @@ -98,7 +100,7 @@ class _SettingBoxGenerator(): def createSettingBoxSwitch(self, for_var_label_text, for_var_desc_text, switch_attr_name, is_checked, command): - (setting_box_frame, setting_box_item_frame) = self._createSettingBoxFrame(self, for_var_label_text, for_var_desc_text) + (setting_box_frame, setting_box_item_frame) = self._createSettingBoxFrame(for_var_label_text, for_var_desc_text) switch_widget = CTkSwitch( setting_box_item_frame, @@ -120,14 +122,14 @@ class _SettingBoxGenerator(): switch_widget.select() if is_checked else switch_widget.deselect() - switch_widget.grid(row=1, column=1) + switch_widget.grid(row=1, column=SETTING_BOX_COLUMN, sticky="e") return setting_box_frame def createSettingBoxCheckbox(self, for_var_label_text, for_var_desc_text, checkbox_attr_name, variable, command): - (setting_box_frame, setting_box_item_frame) = self._createSettingBoxFrame(self, for_var_label_text, for_var_desc_text) + (setting_box_frame, setting_box_item_frame) = self._createSettingBoxFrame(for_var_label_text, for_var_desc_text) checkbox_widget = CTkCheckBox( setting_box_item_frame, @@ -153,7 +155,7 @@ class _SettingBoxGenerator(): # checkbox_widget.select() if is_checked else checkbox_widget.deselect() - checkbox_widget.grid(row=1, column=1) + checkbox_widget.grid(row=1, column=SETTING_BOX_COLUMN, sticky="e") return setting_box_frame @@ -163,7 +165,7 @@ class _SettingBoxGenerator(): def createSettingBoxSlider(self, for_var_label_text, for_var_desc_text, slider_attr_name, slider_range, command, variable, slider_number_of_steps: Union[int, None] = None): - (setting_box_frame, setting_box_item_frame) = self._createSettingBoxFrame(self, for_var_label_text, for_var_desc_text) + (setting_box_frame, setting_box_item_frame) = self._createSettingBoxFrame(for_var_label_text, for_var_desc_text) slider_widget = CTkSlider( setting_box_item_frame, @@ -177,7 +179,7 @@ class _SettingBoxGenerator(): ) setattr(self.config_window, slider_attr_name, slider_widget) - slider_widget.grid(row=1, column=1) + slider_widget.grid(row=1, column=SETTING_BOX_COLUMN, sticky="e") return setting_box_frame @@ -200,7 +202,7 @@ class _SettingBoxGenerator(): ): - (setting_box_frame, setting_box_item_frame) = self._createSettingBoxFrame(self, for_var_label_text, for_var_desc_text) + (setting_box_frame, setting_box_item_frame) = self._createSettingBoxFrame(for_var_label_text, for_var_desc_text) ENTRY_WIDTH = self.settings.uism.SB__PROGRESSBAR_X_SLIDER__ENTRY_WIDTH BAR_WIDTH = self.settings.uism.SB__PROGRESSBAR_X_SLIDER__BAR_WIDTH @@ -222,7 +224,7 @@ class _SettingBoxGenerator(): ) entry_widget.bind("", adjusted_command__for_entry_bind__Any_KeyRelease) - entry_widget.grid(row=1, column=1, padx=0, pady=0, sticky="e") + entry_widget.grid(row=1, column=SETTING_BOX_COLUMN, padx=0, pady=0, sticky="e") setattr(self.config_window, entry_attr_name, entry_widget) @@ -248,7 +250,7 @@ class _SettingBoxGenerator(): progress_color=self.settings.ctm.SB__BG_COLOR, border_color=self.settings.ctm.SB__BG_COLOR, ) - slider_widget.grid(row=1, column=1, padx=(0, BAR_PADDING), sticky="e") + slider_widget.grid(row=1, column=SETTING_BOX_COLUMN, padx=(0, BAR_PADDING), sticky="e") setattr(self.config_window, slider_attr_name, slider_widget) @@ -261,7 +263,7 @@ class _SettingBoxGenerator(): corner_radius=0, ) setattr(self.config_window, progressbar_attr_name, progressbar_widget) - progressbar_widget.grid(row=1, column=1, padx=(0, BAR_PADDING), sticky="e") + progressbar_widget.grid(row=1, column=SETTING_BOX_COLUMN, padx=(0, BAR_PADDING), sticky="e") progressbar_widget.set(0) @@ -273,10 +275,10 @@ class _SettingBoxGenerator(): active_button_wrapper = self._createActiveButtonForProgressbarXSlider(setting_box_item_frame, active_button_command, button_image_file) setattr(self.config_window, active_button_attr_name, active_button_wrapper) - passive_button_wrapper.grid(row=1, column=1, padx=(0,BUTTON_PADDING), sticky="e") + passive_button_wrapper.grid(row=1, column=SETTING_BOX_COLUMN, padx=(0,BUTTON_PADDING), sticky="e") passive_button_wrapper.configure(corner_radius=int(getLatestWidth(passive_button_wrapper)/2)) - active_button_wrapper.grid(row=1, column=1, padx=(0,BUTTON_PADDING), sticky="e") + active_button_wrapper.grid(row=1, column=SETTING_BOX_COLUMN, padx=(0,BUTTON_PADDING), sticky="e") active_button_wrapper.configure(corner_radius=int(getLatestWidth(passive_button_wrapper)/2)) passive_button_wrapper.grid_remove() @@ -289,7 +291,7 @@ class _SettingBoxGenerator(): def createSettingBoxEntry(self, for_var_label_text, for_var_desc_text, entry_attr_name, entry_width, entry_bind__Any_KeyRelease, entry_textvariable): - (setting_box_frame, setting_box_item_frame) = self._createSettingBoxFrame(self, for_var_label_text, for_var_desc_text) + (setting_box_frame, setting_box_item_frame) = self._createSettingBoxFrame(for_var_label_text, for_var_desc_text) def adjusted_command__for_entry_bind__Any_KeyRelease(e): entry_bind__Any_KeyRelease(e.widget.get()) @@ -305,7 +307,7 @@ class _SettingBoxGenerator(): setattr(self.config_window, entry_attr_name, entry_widget) - entry_widget.grid(row=1, column=1) + entry_widget.grid(row=1, column=SETTING_BOX_COLUMN, sticky="e") return setting_box_frame From 913b18c5cc1f656712fa7d093c4484aee4ebf4ca Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Sun, 1 Oct 2023 13:40:54 +0900 Subject: [PATCH 2/2] [Chore] remove the code that is no longer in use --- .../_createSettingBoxContainer.py | 2 -- .../setting_box_containers/_SettingBoxGenerator.py | 6 +----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/_createSettingBoxContainer.py b/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/_createSettingBoxContainer.py index 66b089f0..d54cea60 100644 --- a/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/_createSettingBoxContainer.py +++ b/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/_createSettingBoxContainer.py @@ -15,7 +15,6 @@ def _createSettingBoxContainer(config_window, settings, view_variable, setting_b text_color=settings.ctm.LABELS_TEXT_COLOR ) setting_box_wrapper_section_title.place(relx=0, rely=0) - # setting_box_wrapper_section_title.grid(row=0, column=0, padx=0, pady=settings.uism.SB__SECTION_TITLE_BOTTOM_PADY) return container_widget @@ -28,7 +27,6 @@ def _createSettingBoxContainer(config_window, settings, view_variable, setting_b - # setting_boxes_length = len(setting_box_container_settings["setting_boxes"]) setting_box_row=0 for i, setting_box_setting in enumerate(setting_box_container_settings["setting_boxes"]): # Top-Padding that can be container the section title diff --git a/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/_SettingBoxGenerator.py b/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/_SettingBoxGenerator.py index 8bbf6659..766e0ccd 100644 --- a/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/_SettingBoxGenerator.py +++ b/vrct_gui/config_window/widgets/createSideMenuAndSettingsBoxContainers/setting_box_containers/_SettingBoxGenerator.py @@ -1,7 +1,7 @@ from functools import partial from typing import Union -from customtkinter import CTkOptionMenu, CTkFont, CTkFrame, CTkLabel, CTkRadioButton, CTkEntry, CTkSlider, CTkSwitch, CTkCheckBox, CTkProgressBar, END as CTK_END +from customtkinter import CTkOptionMenu, CTkFont, CTkFrame, CTkLabel, CTkRadioButton, CTkEntry, CTkSlider, CTkSwitch, CTkCheckBox, CTkProgressBar from vrct_gui.ui_utils import createButtonWithImage, getLatestWidth @@ -19,12 +19,10 @@ class _SettingBoxGenerator(): setting_box_frame = CTkFrame(self.parent_widget, corner_radius=0, fg_color=self.settings.ctm.SB__BG_COLOR, width=0, height=0) # "pady=(0,1)" is for bottom padding. It can be removed(override) when you do like "self.attr_name.grid(row=row, pady=0)" - # setting_box_frame.grid(column=0, padx=0, pady=0, sticky="ew") setting_box_frame.grid(column=0, padx=0, pady=(0,1), sticky="ew") setting_box_frame.grid_columnconfigure(0, weight=1) - # setting_box_frame_wrapper = CTkFrame(setting_box_frame, corner_radius=0, fg_color="gray", width=0, height=0) setting_box_frame_wrapper = CTkFrame(setting_box_frame, corner_radius=0, fg_color=self.settings.ctm.SB__BG_COLOR, width=0, height=0) setting_box_frame_wrapper.grid(row=0, column=0, padx=self.settings.uism.SB__IPADX, pady=self.settings.uism.SB__IPADY, sticky="ew") setting_box_frame_wrapper.grid_columnconfigure(0, weight=0, minsize=int(self.settings.uism.SB__MAIN_WIDTH / 2)) @@ -153,8 +151,6 @@ class _SettingBoxGenerator(): ) setattr(self.config_window, checkbox_attr_name, checkbox_widget) - # checkbox_widget.select() if is_checked else checkbox_widget.deselect() - checkbox_widget.grid(row=1, column=SETTING_BOX_COLUMN, sticky="e") return setting_box_frame