fextract.tui package

Submodules

fextract.tui.app module

class lbfextract.fextract.tui.app.FextractApp(path='/home/docs/checkouts/readthedocs.org/user_builds/lbf/checkouts/latest/docs/source', signal_type: str = 'extract_coverage')[source]

Bases: App

BINDINGS: ClassVar[list[BindingType]] = [('ctrl+t', 'toggle_tree', 'Toggle Files'), ('q', 'quit', 'Quit'), ('ctrl+p', 'toggle_processes_pane', 'Toggle Processes Pane'), ('ctrl+r', 'check_task_status', 'Check Task Status')]
CSS_PATH: CSSPathType = 'app.css'
action_check_task_status() None[source]

Called in response to key binding.

action_toggle_processes_pane() None[source]

Called in response to key binding.

action_toggle_tree() None[source]

Called in response to key binding.

compose() Iterable[Widget][source]

Yield child widgets for a container.

async on_button_pressed(event: Pressed) None[source]
on_checkbox_changed(event: Changed) None[source]
on_directory_tree_file_click(event: FileClick) None[source]
on_input_changed(event: Changed) None[source]
pressed_botton = None
async run_command()[source]
show_tree = False
lbfextract.fextract.tui.app.Scrollview(param)[source]
class lbfextract.fextract.tui.app.Welcome(renderable: ConsoleRenderable | RichCast | str = '', *, expand: bool = False, shrink: bool = False, markup: bool = True, name: str | None = None, id: str | None = None, classes: str | None = None)[source]

Bases: Static

DEFAULT_CSS: ClassVar[str] = '\n        Welcome {\n            width: 100%;\n            height: 100%;\n            background: $surface;\n        }\n\n        Welcome Container {\n            padding: 1;\n            background: $panel;\n            color: $text;\n        }\n\n        Welcome #text {\n            margin:  0 1;\n        }\n\n        Welcome #close {\n            dock: bottom;\n            width: 100%;        \n        }\n    '
can_focus: bool = False

Widget may receive focus.

can_focus_children: bool = True

Widget’s children may receive focus.

compose() Iterable[Widget][source]

Called by Textual to create child widgets.

Extend this to build a UI.

Example:

```python def compose(self) -> ComposeResult:

yield Header() yield Container(

TreeControl(), Viewer()

) yield Footer()

```

lbfextract.fextract.tui.app.generate_bool_element(label: str)[source]
lbfextract.fextract.tui.app.generate_form_from_command(command)[source]

Generate a form from a command.

lbfextract.fextract.tui.app.generate_path_element(label: str)[source]
lbfextract.fextract.tui.app.generate_static(label, help)[source]
lbfextract.fextract.tui.app.get_element_id(element_name)[source]

fextract.tui.my_directory_tree module

class lbfextract.fextract.tui.my_directory_tree.DirEntry(path: 'str', is_dir: 'bool')[source]

Bases: object

is_dir: bool
path: str
class lbfextract.fextract.tui.my_directory_tree.DirectoryTree(path: str, *, name: str | None = None, id: str | None = None, classes: str | None = None)[source]

Bases: TreeControl[DirEntry]

class FileClick(sender: MessageTarget, path: str)[source]

Bases: Message

bubble: ClassVar[bool] = True
name
namespace: ClassVar[str] = 'directory_tree'
no_dispatch: ClassVar[bool] = False
sender: MessageTarget
time
verbose: ClassVar[bool] = False
can_focus: bool = True

Widget may receive focus.

can_focus_children: bool = True

Widget’s children may receive focus.

async load_directory(node: TreeNode[DirEntry])[source]
on_mount() None[source]
on_styles_updated() None[source]
async on_tree_control_node_selected(message: NodeSelected[DirEntry]) None[source]
render_node(node: TreeNode[DirEntry]) ConsoleRenderable | RichCast | str[source]
render_tree_label(node: TreeNode[DirEntry], is_dir: bool, expanded: bool, is_cursor: bool, is_hover: bool, has_focus: bool) ConsoleRenderable | RichCast | str[source]

Module contents