Skip to content
Discussion options

You must be logged in to vote

@TomJGooding Something like this?

from datetime import datetime

from textual import on
from textual.app import App, ComposeResult
from textual.widgets import Label, TabbedContent, TabPane


class ExampleApp(App):
    def compose(self) -> ComposeResult:
        with TabbedContent():
            with TabPane("Submitted", id="submitted"):
                yield Label("Last viewed: ...")
            with TabPane("In Progress", id="in-progress"):
                yield Label("Last viewed: ...")
            with TabPane("Completed", id="completed"):
                yield Label("Last viewed: ...")

    @on(TabbedContent.TabActivated)
    def on_tabbed_content_tab_activated(
        self, event: T…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@TomJGooding
Comment options

@TomJGooding
Comment options

@MohamedElgamal
Comment options

@davep
Comment options

Answer selected by MohamedElgamal
@MohamedElgamal
Comment options

@davep
Comment options

@TomJGooding
Comment options

@davep
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