INNER CODE UNIT · Python

on_mount

idoavrah/terraform-tui · src/tftui/app.py:124

    def on_mount(self) -> None:
        self.theme = LIGHT_THEME if self.settings.light_mode else DARK_THEME
        self.sub_title = f"v{__version__}{self.telemetry.update_suffix}"
        self.startup()

    # ------------------------------------------------------------- shortcuts

    @property
    def state_tree(self) -> StateTree:
        """The state tree widget.

        Deliberately not named `tree`: `DOMNode.tree` is Textual's own DOM
        debugging view, and shadowing it breaks the devtools.
        """
        return self.query_one(f"#{TREE}", StateTree)

    @property
    def resource_view(self) -> ResourceView:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…