[Chore] 関数名変更 updateConfigWindowTransparency -> setMainWindowTransparency
設定画面からCALLBACKで呼ばれて扱う関数ではあるものの、実際に影響するのは今のところメイン画面だけなのでそういう意味での変更と、 view.pyでconfigから値を読み込んでいたのを、引数で渡してそれをただセットする関数に変更。そのため名前はupdateではなくsetに。
This commit is contained in:
7
view.py
7
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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user