From 7fe1cb329a1aaaeba346cf8cbb0ff393e6da0802 Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Tue, 10 Oct 2023 14:42:06 +0900 Subject: [PATCH] =?UTF-8?q?[Refactor]=20=E5=91=BC=E3=81=B3=E5=87=BA?= =?UTF-8?q?=E3=81=97=E9=96=A2=E6=95=B0=E5=90=8D=E7=B5=B1=E4=B8=80=20.rowco?= =?UTF-8?q?nfigure=20.columnconfigure=20=E3=82=92=20.grid=5Frowconfigure?= =?UTF-8?q?=20.grid=5Fcolumnconfigure=20=E3=81=A8=E7=B5=B1=E4=B8=80?= =?UTF-8?q?=E3=80=82=20(.rowconfigure=20.columnconfigure=20=E5=81=B4?= =?UTF-8?q?=E3=81=AB=E7=B5=B1=E4=B8=80=E3=81=97=E3=81=AA=E3=81=8B=E3=81=A3?= =?UTF-8?q?=E3=81=9F=E7=90=86=E7=94=B1=E3=81=AF=E3=80=81.configure?= =?UTF-8?q?=E9=96=A2=E6=95=B0=E3=81=A8=E5=A4=A7=E3=81=8D=E3=81=8F=E5=8C=BA?= =?UTF-8?q?=E5=88=A5=E3=81=99=E3=82=8B=E3=81=9F=E3=82=81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vrct_gui/_CreateErrorWindow.py | 4 ++-- vrct_gui/_CreateModalWindow.py | 4 ++-- vrct_gui/_CreateSelectableLanguagesWindow.py | 16 ++++++++-------- .../_SettingBoxGenerator.py | 2 +- vrct_gui/main_window/createMainWindowWidgets.py | 4 ++-- .../createSidebarLanguagesSettings.py | 2 +- .../widgets/create_entry_message_box.py | 2 +- vrct_gui/main_window/widgets/create_textbox.py | 2 +- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/vrct_gui/_CreateErrorWindow.py b/vrct_gui/_CreateErrorWindow.py index 5a9029b8..f92e47f6 100644 --- a/vrct_gui/_CreateErrorWindow.py +++ b/vrct_gui/_CreateErrorWindow.py @@ -55,8 +55,8 @@ class _CreateErrorWindow(CTkToplevel): - self.rowconfigure(0,weight=1) - self.columnconfigure(0,weight=1) + self.grid_rowconfigure(0,weight=1) + self.grid_columnconfigure(0,weight=1) self.modal_container = CTkFrame(self, corner_radius=0, fg_color=self.message_bg_color, width=0, height=0) self.modal_container.grid(row=0, column=0, sticky="nsew") diff --git a/vrct_gui/_CreateModalWindow.py b/vrct_gui/_CreateModalWindow.py index 8aa6cb64..17dcd421 100644 --- a/vrct_gui/_CreateModalWindow.py +++ b/vrct_gui/_CreateModalWindow.py @@ -31,8 +31,8 @@ class _CreateModalWindow(CTkToplevel): self.geometry('{}x{}+{}+{}'.format(self.width_new, self.height_new, self.x_pos, self.y_pos)) - self.rowconfigure(0,weight=1) - self.columnconfigure(0,weight=1) + self.grid_rowconfigure(0,weight=1) + self.grid_columnconfigure(0,weight=1) self.modal_container = CTkFrame(self, corner_radius=0, fg_color="black", width=0, height=0) self.modal_container.grid(row=0, column=0, sticky="nsew") diff --git a/vrct_gui/_CreateSelectableLanguagesWindow.py b/vrct_gui/_CreateSelectableLanguagesWindow.py index dbac7fc9..8b559a7a 100644 --- a/vrct_gui/_CreateSelectableLanguagesWindow.py +++ b/vrct_gui/_CreateSelectableLanguagesWindow.py @@ -70,15 +70,15 @@ class _CreateSelectableLanguagesWindow(CTkToplevel): def _createContainer(self): - self.rowconfigure(0, minsize=50) - self.rowconfigure(1, weight=1) - self.columnconfigure(0, weight=1) + self.grid_rowconfigure(0, minsize=50) + self.grid_rowconfigure(1, weight=1) + self.grid_columnconfigure(0, weight=1) self.top_container = CTkFrame(self, corner_radius=0, fg_color=self.settings.ctm.TOP_BG_COLOR, width=0, height=0) self.top_container.grid(row=0, column=0, sticky="nsew") - self.top_container.rowconfigure((0,2), weight=1) - self.top_container.columnconfigure(1, weight=1) + self.top_container.grid_rowconfigure((0,2), weight=1) + self.top_container.grid_columnconfigure(1, weight=1) self.go_back_button_container = CTkFrame(self.top_container, corner_radius=0, fg_color=self.settings.ctm.GO_BACK_BUTTON_BG_COLOR, width=0, height=0, cursor="hand2") self.go_back_button_container.grid(row=1, column=0) @@ -105,8 +105,8 @@ class _CreateSelectableLanguagesWindow(CTkToplevel): self.title_container = CTkFrame(self.top_container, corner_radius=0, fg_color=self.settings.ctm.TOP_BG_COLOR, width=0, height=0) self.title_container.grid(row=1, column=1, sticky="nsew") - self.title_container.columnconfigure((0,2), weight=1) - self.title_container.rowconfigure((0,2), weight=1) + self.title_container.grid_columnconfigure((0,2), weight=1) + self.title_container.grid_rowconfigure((0,2), weight=1) self.title_label = CTkLabel( self.title_container, textvariable=self._view_variable.VAR_TITLE_LABEL_SELECTABLE_LANGUAGE, @@ -143,7 +143,7 @@ class _CreateSelectableLanguagesWindow(CTkToplevel): - self.wrapper.rowconfigure((0,2), weight=1) + self.wrapper.grid_rowconfigure((0,2), weight=1) selectable_language_name_for_text = selectable_language_name.replace("\n", " ") label_widget = CTkLabel( self.wrapper, 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 b2d25d9d..0abcc4c4 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 @@ -40,7 +40,7 @@ class _SettingBoxGenerator(): 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=2, padx=0, sticky="nsew") - setting_box_item_frame.rowconfigure((0,2), weight=1) + setting_box_item_frame.grid_rowconfigure((0,2), weight=1) setting_box_item_frame.grid_columnconfigure(0, weight=1) return (setting_box_frame, setting_box_item_frame) diff --git a/vrct_gui/main_window/createMainWindowWidgets.py b/vrct_gui/main_window/createMainWindowWidgets.py index 06e2783e..78436481 100644 --- a/vrct_gui/main_window/createMainWindowWidgets.py +++ b/vrct_gui/main_window/createMainWindowWidgets.py @@ -35,7 +35,7 @@ def createMainWindowWidgets(vrct_gui, settings, view_variable): - vrct_gui.main_topbar_container.columnconfigure(1,weight=1) + vrct_gui.main_topbar_container.grid_columnconfigure(1,weight=1) vrct_gui.main_topbar_center_container = CTkFrame(vrct_gui.main_topbar_container, corner_radius=0, fg_color=settings.ctm.MAIN_BG_COLOR, width=0, height=0) vrct_gui.main_topbar_center_container.grid(row=0, column=1, sticky="nsew") @@ -88,7 +88,7 @@ def createMainWindowWidgets(vrct_gui, settings, view_variable): main_topbar_column+=1 - vrct_gui.update_available_container.rowconfigure((0,2), weight=1) + vrct_gui.update_available_container.grid_rowconfigure((0,2), weight=1) vrct_gui.update_available_icon = CTkLabel( vrct_gui.update_available_container, diff --git a/vrct_gui/main_window/widgets/_create_sidebar/createSidebarLanguagesSettings.py b/vrct_gui/main_window/widgets/_create_sidebar/createSidebarLanguagesSettings.py index 0f22ffae..de928a32 100644 --- a/vrct_gui/main_window/widgets/_create_sidebar/createSidebarLanguagesSettings.py +++ b/vrct_gui/main_window/widgets/_create_sidebar/createSidebarLanguagesSettings.py @@ -51,7 +51,7 @@ def createSidebarLanguagesSettings(settings, main_window, view_variable): def createLanguageSettingBox(parent_widget, var_title_text, title_text_attr_name, arrow_img_attr_name, open_selectable_language_window_command, variable): sls__box = CTkFrame(parent_widget, corner_radius=0, fg_color=settings.ctm.SLS__BOX_BG_COLOR, width=0, height=0) - sls__box.columnconfigure(1, weight=1) + sls__box.grid_columnconfigure(1, weight=1) sls__box_wrapper = CTkFrame(sls__box, corner_radius=0, fg_color=settings.ctm.SLS__BOX_BG_COLOR, width=0, height=0) sls__box_wrapper.grid(row=2, column=1, padx=10, pady=settings.uism.SLS__BOX_IPADY, sticky="ew") diff --git a/vrct_gui/main_window/widgets/create_entry_message_box.py b/vrct_gui/main_window/widgets/create_entry_message_box.py index 0e95c550..e583234f 100644 --- a/vrct_gui/main_window/widgets/create_entry_message_box.py +++ b/vrct_gui/main_window/widgets/create_entry_message_box.py @@ -5,7 +5,7 @@ def createEntryMessageBox(settings, main_window): main_window.main_entry_message_container.grid(row=2, column=0, sticky="ew") - main_window.main_entry_message_container.columnconfigure(0, weight=1) + main_window.main_entry_message_container.grid_columnconfigure(0, weight=1) main_window.entry_message_box = CTkEntry( main_window.main_entry_message_container, border_color=settings.ctm.TEXTBOX_ENTRY_BORDER_COLOR, diff --git a/vrct_gui/main_window/widgets/create_textbox.py b/vrct_gui/main_window/widgets/create_textbox.py index 891e78cb..ce1f2e7a 100644 --- a/vrct_gui/main_window/widgets/create_textbox.py +++ b/vrct_gui/main_window/widgets/create_textbox.py @@ -114,7 +114,7 @@ def createTextbox(settings, main_window, view_variable): - target_widget.columnconfigure((0,2), weight=1) + target_widget.grid_columnconfigure((0,2), weight=1) setattr(main_window, "label_widget", CTkLabel( target_widget, textvariable=textbox_setting["textvariable"],