[Update] Main Window: Update通知UI デフォルトは非表示で、main.py側でconfig.UPDATE_FLAGを見て表示するかどうかの関数追加。(実際にconfig変数を見るかどうかは別担当 misya へ引き継ぎ)
This commit is contained in:
1 parent
c072a5a406
commit
ed795cfd9f
3 files changed
+7
No files matched your search
@@ -668,5 +668,8 @@ view.register(
|
||||
},
|
||||
)
|
||||
|
||||
if config.UPDATE_FLAG is True:
|
||||
view.showUpdateAvailableButton()
|
||||
|
||||
if __name__ == "__main__":
|
||||
view.startMainLoop()
|
||||
@@ -392,6 +392,9 @@ class View():
|
||||
# self._insertSampleConversationToTextbox()
|
||||
|
||||
|
||||
@staticmethod
|
||||
def showUpdateAvailableButton():
|
||||
vrct_gui.update_available_container.grid()
|
||||
|
||||
@staticmethod
|
||||
def setMainWindowAllWidgetsStatusToNormal():
|
||||
|
||||
@@ -50,6 +50,7 @@ def createMainWindowWidgets(vrct_gui, settings, view_variable):
|
||||
cursor="hand2",
|
||||
)
|
||||
vrct_gui.update_available_container.grid(row=0, column=3, padx=settings.uism.UPDATE_AVAILABLE_BUTTON_PADX, pady=settings.uism.TOP_BAR_BUTTON_PADY, sticky="nse")
|
||||
vrct_gui.update_available_container.grid_remove()
|
||||
|
||||
|
||||
vrct_gui.update_available_container.rowconfigure((0,2), weight=1)
|
||||
|
||||
Reference in new issue
Block a user