interface
dev_tool.tui.interface
UserInterface
A class for the TUI user interface.
This class handles rendering and navigation in the TUI menu by composing various UI components together.
The constructor for the UserInterface class.
Parameters:
-
terminal(Terminal) –The blessed Terminal instance.
Source code in dev_tool/tui/interface.py
terminal = terminal
instance-attribute
theme = Default(terminal)
instance-attribute
state = StateManager()
instance-attribute
header = HeaderComponent(terminal, self.theme)
instance-attribute
item = ItemComponent(terminal, self.theme, self.state)
instance-attribute
navigation = NavigationHandler(self.state, NotificationDisplay(terminal))
instance-attribute
notification = NotificationComponent(terminal)
instance-attribute
status_bar = StatusBarComponent(terminal, self.theme, self.state)
instance-attribute
tabs = TabComponent(terminal, self.theme, self.state)
instance-attribute
index
property
writable
menu
property
offset
property
writable
row
property
writable
stack
property
tab
property
writable
draw_menu
A method that draws the entire menu.