TUI

Textual TUI for Package Maximizer.

class package_maximizer.tui.app.MaximizerApp(driver_class=None, css_path=None, watch_css=False, ansi_color=None)[source]

Bases: App

Interactive terminal UI for package maximization.

Parameters:
  • driver_class (Type[Driver] | None)

  • css_path (CSSPathType | None)

  • watch_css (bool)

  • ansi_color (bool | None)

CSS = '\n    Screen {\n        layout: vertical;\n    }\n    #main {\n        height: 1fr;\n    }\n    #results {\n        height: 1fr;\n    }\n    #log {\n        height: 1fr;\n    }\n    '

Inline CSS, useful for quick scripts. This is loaded after CSS_PATH, and therefore takes priority in the event of a specificity clash.

compose()[source]

Yield child widgets for a container.

This method should be implemented in a subclass.

Return type:

Iterable[Widget]

on_button_pressed(event)[source]
Parameters:

event (Pressed)

Return type:

None

package_maximizer.tui.app.run_tui()[source]

Run the Textual TUI.

Return type:

None