task
dev_tool.tui.task
__all__ = ['TaskInterface']
module-attribute
TaskInterface
Bases: BaseInterface
The constructor for the TaskInterface class.
Parameters:
-
terminal(Terminal) –The blessed Terminal instance.
Source code in dev_tool/tui/task/interface.py
task_manager = TaskManager()
instance-attribute
index = 0
instance-attribute
offset = 0
instance-attribute
scroll = 0
instance-attribute
viewing_result = False
instance-attribute
visible = 10
instance-attribute
selected_task_result = None
instance-attribute
previous_update = 0
instance-attribute
draw_progress_screen
A method that draws the progress screen.
handle_input
A method that handles input for the task progress interface.
Parameters:
-
key(str) –The key name.
Returns:
-
str | None–The navigation result or None to continue.
Source code in dev_tool/tui/task/interface.py
needs_refresh
A method that checks if the interface needs to be refreshed.
Returns:
-
bool–True if refresh is needed, False otherwise.