[Refactor] 呼び出し関数名統一

.rowconfigure .columnconfigure を .grid_rowconfigure .grid_columnconfigure と統一。
(.rowconfigure .columnconfigure 側に統一しなかった理由は、.configure関数と大きく区別するため)
This commit is contained in:
Sakamoto Shiina
2023-10-10 14:42:06 +09:00
parent 8957e65e61
commit 7fe1cb329a
8 changed files with 18 additions and 18 deletions

View File

@@ -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")

View File

@@ -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")

View File

@@ -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,

View File

@@ -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)

View File

@@ -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,

View File

@@ -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")

View File

@@ -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,

View File

@@ -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"],