Skip to content
Discussion options

You must be logged in to vote

It's always a little tricky to offer advice when you can't see all of the code and styling; here I've quickly mocked up what it is you seem to be wanting to achieve.

from textual.app        import App, ComposeResult
from textual.containers import Vertical
from textual.widgets    import Header, Footer, DataTable, Label

class CustomTable( Vertical ):

    def __init__( self, title: str ) -> None:
        super().__init__()
        self._title = title

    def _test_dt( self ) -> DataTable:
        dt = DataTable()
        dt.zebra_stripes = True
        dt.cursor_type   = "row"
        dt.fixed_columns = 1
        dt.add_column( "id", width=10 )
        dt.add_column( "status", width=10 )
…

Replies: 4 comments 3 replies

Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@willmcgugan
Comment options

@jjloesch
Comment options

@meshula
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants