Skip to content
Discussion options

You must be logged in to vote
from textual.app import App
from textual.widgets import TabbedContent, TabPane, Placeholder


class DiagnosticApp(App):
    CSS = """
    TabbedContent ContentSwitcher{
        height: 1fr;
    }
    Placeholder {
        height: 1fr;
    }
    """

    def compose(self):
        with TabbedContent():
            with TabPane("PANE", id="pane"):
                yield Placeholder("pane content")


if __name__ == "__main__":
    app = DiagnosticApp()
    app.dark = False
    app.run()

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@dragomirecky
Comment options

@willmcgugan
Comment options

@dragomirecky
Comment options

@willmcgugan
Comment options

Answer selected by dragomirecky
@dragomirecky
Comment options

@dragomirecky
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants