From cba7e44caa9123ae3dfc755d8c2ee59d34a6c747 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Tue, 9 Jun 2020 07:28:41 +0300 Subject: [PATCH] Added doc string for exit_message --- Defs/ActionManager/simple_informant.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Defs/ActionManager/simple_informant.py b/Defs/ActionManager/simple_informant.py index 977a20b..0474540 100644 --- a/Defs/ActionManager/simple_informant.py +++ b/Defs/ActionManager/simple_informant.py @@ -42,6 +42,14 @@ def license_handler(): def exit_message(port = 80): # Message when HiddenEye exit + """Displays preconfigured message when HiddenEye execution ends or user tries to leave app. + + Args: + port (int, optional): Will be used as port value if custom one isn't provided. Needed in case user decides to restart app again. Defaults to 80. + + Returns: + method: If no option is selected, exit message returns to self and gets shown again. + """ choice = input(localization.lang_exit_message["choice"]) choice.lower() if choice == 'r':