From 83fab83f5bdfa9cbae4a919cf208d1f919059a6b Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Wed, 6 Sep 2023 04:18:14 +0900 Subject: [PATCH] =?UTF-8?q?[Chore]=20=E9=96=A2=E6=95=B0=E5=90=8D=E5=A4=89?= =?UTF-8?q?=E6=9B=B4=20updateConfigWindowTransparency=20->=20setMainWindow?= =?UTF-8?q?Transparency=20=E8=A8=AD=E5=AE=9A=E7=94=BB=E9=9D=A2=E3=81=8B?= =?UTF-8?q?=E3=82=89CALLBACK=E3=81=A7=E5=91=BC=E3=81=B0=E3=82=8C=E3=81=A6?= =?UTF-8?q?=E6=89=B1=E3=81=86=E9=96=A2=E6=95=B0=E3=81=A7=E3=81=AF=E3=81=82?= =?UTF-8?q?=E3=82=8B=E3=82=82=E3=81=AE=E3=81=AE=E3=80=81=E5=AE=9F=E9=9A=9B?= =?UTF-8?q?=E3=81=AB=E5=BD=B1=E9=9F=BF=E3=81=99=E3=82=8B=E3=81=AE=E3=81=AF?= =?UTF-8?q?=E4=BB=8A=E3=81=AE=E3=81=A8=E3=81=93=E3=82=8D=E3=83=A1=E3=82=A4?= =?UTF-8?q?=E3=83=B3=E7=94=BB=E9=9D=A2=E3=81=A0=E3=81=91=E3=81=AA=E3=81=AE?= =?UTF-8?q?=E3=81=A7=E3=81=9D=E3=81=86=E3=81=84=E3=81=86=E6=84=8F=E5=91=B3?= =?UTF-8?q?=E3=81=A7=E3=81=AE=E5=A4=89=E6=9B=B4=E3=81=A8=E3=80=81=20view.p?= =?UTF-8?q?y=E3=81=A7config=E3=81=8B=E3=82=89=E5=80=A4=E3=82=92=E8=AA=AD?= =?UTF-8?q?=E3=81=BF=E8=BE=BC=E3=82=93=E3=81=A7=E3=81=84=E3=81=9F=E3=81=AE?= =?UTF-8?q?=E3=82=92=E3=80=81=E5=BC=95=E6=95=B0=E3=81=A7=E6=B8=A1=E3=81=97?= =?UTF-8?q?=E3=81=A6=E3=81=9D=E3=82=8C=E3=82=92=E3=81=9F=E3=81=A0=E3=82=BB?= =?UTF-8?q?=E3=83=83=E3=83=88=E3=81=99=E3=82=8B=E9=96=A2=E6=95=B0=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4=E3=80=82=E3=81=9D=E3=81=AE=E3=81=9F=E3=82=81?= =?UTF-8?q?=E5=90=8D=E5=89=8D=E3=81=AFupdate=E3=81=A7=E3=81=AF=E3=81=AA?= =?UTF-8?q?=E3=81=8Fset=E3=81=AB=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- view.py | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 1f834b47..ea563ec2 100644 --- a/main.py +++ b/main.py @@ -222,7 +222,7 @@ def callbackDisableConfigWindowCompactMode(): def callbackSetTransparency(value): print("callbackSetTransparency", int(value)) config.TRANSPARENCY = int(value) - view.updateConfigWindowTransparency() + view.setMainWindowTransparency(config.TRANSPARENCY/100) def callbackSetAppearance(value): print("callbackSetAppearance", value) diff --git a/view.py b/view.py index 26cc8c35..49cbacf7 100644 --- a/view.py +++ b/view.py @@ -405,6 +405,9 @@ class View(): def clearMessageBox(self): vrct_gui.entry_message_box.delete(0, CTK_END) + @staticmethod + def setMainWindowTransparency(transparency:float): + vrct_gui.wm_attributes("-alpha", transparency) @@ -416,10 +419,6 @@ class View(): # Config Window - @staticmethod - def updateConfigWindowTransparency(): - vrct_gui.wm_attributes("-alpha", config.TRANSPARENCY/100) - def setConfigWindowCompactModeSwitchStatusToDisabled(self): vrct_gui.config_window.setting_box_compact_mode_switch_box.configure(state="disabled")