From c841ceda182baf70e8f9a38611951be4d898f4fa Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Sun, 10 Sep 2023 07:08:07 +0900 Subject: [PATCH] =?UTF-8?q?[Update]=20Main=20Window:=20=E8=A8=80=E8=AA=9E?= =?UTF-8?q?=E9=81=B8=E6=8A=9E=E3=82=A6=E3=82=A3=E3=83=B3=E3=83=89=E3=82=A6?= =?UTF-8?q?=E3=81=AB=E3=82=B9=E3=82=AF=E3=83=AD=E3=83=BC=E3=83=AB=E3=83=95?= =?UTF-8?q?=E3=83=AC=E3=83=BC=E3=83=A0=E3=82=92=E8=BF=BD=E5=8A=A0=E3=80=82?= =?UTF-8?q?=E3=82=B5=E3=82=A4=E3=82=BA=E3=82=82=E7=84=A1=E7=90=86=E3=82=84?= =?UTF-8?q?=E3=82=8A=E3=81=A7=E3=81=AF=E3=81=82=E3=82=8B=E3=81=91=E3=81=A9?= =?UTF-8?q?=E3=83=A1=E3=82=A4=E3=83=B3=E7=94=BB=E9=9D=A2=E3=81=AB=E5=90=88?= =?UTF-8?q?=E3=82=8F=E3=81=9B=E3=81=A6=E8=AA=BF=E6=95=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vrct_gui/_CreateSelectableLanguagesWindow.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/vrct_gui/_CreateSelectableLanguagesWindow.py b/vrct_gui/_CreateSelectableLanguagesWindow.py index b2701249..ee5a0ea5 100644 --- a/vrct_gui/_CreateSelectableLanguagesWindow.py +++ b/vrct_gui/_CreateSelectableLanguagesWindow.py @@ -39,8 +39,8 @@ class _CreateSelectableLanguagesWindow(CTkToplevel): self.x_pos = self.attach.winfo_rootx() self.y_pos = self.attach.winfo_rooty() - self.width_new = self.attach.winfo_width() - self.height_new = self.attach.winfo_height() + self.width_new = self.attach.winfo_width() - 16 + self.height_new = self.attach.winfo_height() - 50 self.geometry('+{}+{}'.format(self.x_pos, self.y_pos)) @@ -102,16 +102,18 @@ class _CreateSelectableLanguagesWindow(CTkToplevel): - # self.scroll_frame_container = CTkScrollableFrame(self, corner_radius=0, fg_color=self.settings.ctm.MAIN_BG_COLOR) - # self.scroll_frame_container.grid(row=1, column=0, sticky="nsew") + self.scroll_frame_container = CTkScrollableFrame(self, corner_radius=0, fg_color=self.settings.ctm.MAIN_BG_COLOR, width=self.width_new, height=self.height_new) + self.scroll_frame_container.grid(row=1, column=0, sticky="nsew") - self.container = CTkFrame(self, corner_radius=0, fg_color=self.settings.ctm.MAIN_BG_COLOR, width=0, height=0) - self.container.grid(row=1, column=0, sticky="nsew") + self.container = CTkFrame(self.scroll_frame_container, corner_radius=0, fg_color=self.settings.ctm.MAIN_BG_COLOR, width=0, height=0) + self.container.grid(row=0, column=0, sticky="nsew") + max_row = int(len(self._view_variable.LIST_SELECTABLE_LANGUAGES)/3) + 1 + max_row+=1 row=0 column=0 for selectable_language_name in self._view_variable.LIST_SELECTABLE_LANGUAGES: @@ -147,7 +149,7 @@ class _CreateSelectableLanguagesWindow(CTkToplevel): callback = partial(self.callbackSelectableLanguages, selectable_language_name) bindButtonReleaseFunction([self.wrapper, label_widget], callback) - if row == 16: + if row == max_row: row=0 column+=1 else: