Skip to content

Split view from controller for a TabPane #5720

Answered by ddkasa
Salvodif asked this question in Q&A
Discussion options

You must be logged in to vote

As mentioned before this:

with TabbedContent(initial="library"):
    with TabPane("Library", id="library"): # Not needed as your main_table_view is a TabPane already.
        yield self.main_table_view

Should be this:

with TabbedContent(initial="library"):
    yield self.main_table_view

Your init needs a tab title since that is where your AttributeError is coming from:

self.main_table_view = MainTableView("Library", self.main_ctrl, id="library")

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Salvodif
Comment options

@ddkasa
Comment options

@Salvodif
Comment options

@ddkasa
Comment options

Answer selected by Salvodif
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