Open program in the center of the window at launch
This commit is contained in:
@@ -65,7 +65,7 @@ class MainController:
|
||||
=> Event launched when a check for available updates is requested.
|
||||
"""
|
||||
# TODO write the function
|
||||
print("on_check_for_update")
|
||||
self.show_information_dialog(self.get_config('app_name'), "Oupss, this functionality isn't available yet!\nTry it again later.")
|
||||
|
||||
def on_about(self) -> None:
|
||||
"""
|
||||
@@ -102,11 +102,22 @@ class MainController:
|
||||
[function for controller]
|
||||
=> Ask a question to the user and block until he answers with yes or no.
|
||||
|
||||
* :title: ->
|
||||
* :message: ->
|
||||
* :icon: ->
|
||||
* :title: -> Title of the dialogue.
|
||||
* :message: -> Message of the dialogue.
|
||||
* :icon: -> Icon of the dialogue
|
||||
"""
|
||||
return self.__view.show_question_dialog(title, message, icon)
|
||||
|
||||
def show_information_dialog(self, title: str='title', message: str='informations!', icon: str='info') -> bool:
|
||||
"""
|
||||
[function for controller]
|
||||
=> Display a pop-up information dialog to the user.
|
||||
|
||||
* :title: -> Title of the dialogue.
|
||||
* :message: -> Message of the dialogue.
|
||||
* :icon: -> Icon of the dialogue
|
||||
"""
|
||||
return self.__view.show_information_dialog(title, message, icon)
|
||||
# END Controller methods
|
||||
|
||||
# START Controller events
|
||||
|
||||
Reference in New Issue
Block a user