Skip to content
Discussion options

You must be logged in to vote

Well, my workaround is this at this point:

it includes tab addition logic both outside of the widget and inside, originally I only wanted to do inside

from typing import Any, Generator

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


class PotentiallySelfComposingTabbedContentLikeWidget(Widget):
    DEFAULT_CSS = """
    PotentiallySelfComposingTabbedContentLikeWidget {
        width: 1fr;
        height: 1fr;
        overflow: hidden hidden;
        border: round $foreground 20%;
    }
    """

    _initial: str
    _use_example_data: bool
    _tabs: list[TabPane]

    def __init__(self, *, initial: 

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by pycaw
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@pycaw
Comment options

@willmcgugan
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
2 participants