Skip to content
Discussion options

You must be logged in to vote

Something like this?

from textual.app        import App, ComposeResult
from textual.containers import Horizontal, Vertical
from textual.widgets    import Header, Footer, TextLog, Input

class NotAGridLayout( App[ None ] ):

    CSS = """
    .left, .middle, .right {
        border: round #777;
    }

    .left, .right {
        width: 1fr;
    }

    .middle {
        width: 2fr;
    }

    TextLog {
        height: 1fr;
    }
    """

    def compose( self ) -> ComposeResult:
        yield Header()
        yield Vertical(
            Horizontal( TextLog( classes="left" ), TextLog( classes="middle" ), TextLog( classes="right" ) ),
            Horizontal(
                TextLog( classes="…

Replies: 1 comment 10 replies

Comment options

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

@mharig
Comment options

@davep
Comment options

@mharig
Comment options

@davep
Comment options

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