[Refactor] メイン画面の閉じるボタンを押したときの処理をCALLBACK関数にしてview.pyに移動。
This commit is contained in:
1 parent
4526c2a28e
commit
78c9a290cc
2 files changed
+3
-1
No files matched your search
@@ -6,7 +6,7 @@ from utils import callFunctionIfCallable
|
||||
from ..ui_utils import createButtonWithImage, getImagePath, bindButtonFunctionAndColor
|
||||
|
||||
def createMainWindowWidgets(vrct_gui, settings, view_variable):
|
||||
vrct_gui.protocol("WM_DELETE_WINDOW", vrct_gui._quitVRCT)
|
||||
vrct_gui.protocol("WM_DELETE_WINDOW", lambda: callFunctionIfCallable(view_variable.CALLBACK_QUIT_VRCT))
|
||||
|
||||
|
||||
vrct_gui.iconbitmap(getImagePath("vrct_logo_mark_black.ico"))
|
||||
|
||||
Reference in new issue
Block a user