menu
dev_tool.launcher.menu
LauncherMenu
The constructor for the LauncherMenu class.
Parameters:
-
terminal(Terminal) –The blessed Terminal instance.
Source code in dev_tool/launcher/menu.py
index = 0
instance-attribute
options = [('Retry', UserResponse.RETRY), ('Quit', UserResponse.QUIT), ('Terminate', UserResponse.TERMINATE)]
instance-attribute
terminal = terminal
instance-attribute
draw_menu
A method that draws the retry menu.
Source code in dev_tool/launcher/menu.py
handle_input
A method that handles input for the menu.
Parameters:
-
key(str) –The key name.
Returns:
-
UserResponse | None–The selected response or None to continue.
Source code in dev_tool/launcher/menu.py
run
A method that runs the menu loop.
Returns:
-
UserResponse | None–The selected user response.