From 59079def6a48e15112e8a7c4ca12bc807564219e Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Sun, 21 Jan 2024 14:49:04 +0900 Subject: [PATCH] =?UTF-8?q?[bugfix]=20Config=20Window:=20=E5=86=8D?= =?UTF-8?q?=E8=B5=B7=E5=8B=95=E3=83=9C=E3=82=BF=E3=83=B3=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E3=81=AE=E3=83=A9=E3=83=99=E3=83=AB=E3=81=8C=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E3=81=95=E3=82=8C=E3=81=AA=E3=81=84=E5=A0=B4=E5=90=88=E3=81=8C?= =?UTF-8?q?=E3=81=82=E3=82=8B=E3=83=90=E3=82=B0=E4=BF=AE=E6=AD=A3=E3=80=82?= =?UTF-8?q?=20weight=20type=E5=A4=89=E6=9B=B4=E6=99=82=E3=81=AE=E3=81=BF?= =?UTF-8?q?=E7=99=BA=E7=94=9F=E3=81=97=E3=81=A6=E3=81=84=E3=81=9F=E3=80=82?= =?UTF-8?q?after=E9=96=A2=E6=95=B0=E3=82=92=E4=BD=BF=E3=81=84=E3=80=81?= =?UTF-8?q?=E8=A1=A8=E7=A4=BA=E3=82=92=E8=8B=A5=E5=B9=B2=E9=81=85=E3=82=89?= =?UTF-8?q?=E3=81=9B=E3=82=8B=E3=81=93=E3=81=A8=E3=81=A7=E5=AF=BE=E5=87=A6?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/view.py b/view.py index 20b9678e..093d5e60 100644 --- a/view.py +++ b/view.py @@ -1013,7 +1013,8 @@ class View(): def _showRestartButton(self, locale:Union[None,str]=None): self.view_variable.VAR_CONFIG_WINDOW_RESTART_BUTTON_LABEL.set(i18n.t("config_window.restart_message", locale=locale)) - vrct_gui.config_window.restart_button_container.grid() + # This .after() func is for fixing bug that it can't be shown the label widget after changing the weight type. + vrct_gui.config_window.after(100, vrct_gui.config_window.restart_button_container.grid) def _hideRestartButton(self): vrct_gui.config_window.restart_button_container.grid_remove()