Skip to content
Discussion options

You must be logged in to vote

How could I get 'Static' to scroll?

You could add a container like Vertical or VerticalScroll depending on your version of Textual (the latter has only just been released in v0.16). See below for a quick example.

Static works but TextLog raises NoActiveAppError()

I'm afraid I don't really understand what the rest of your app might be doing, but I found this issue which might be helpful?

from textual.app import App, ComposeResult
from textual.containers import VerticalScroll
from textual.widgets import Footer, Static


class OutputApp(App):
    CSS = """
    Screen {
        align: center middle;
    }

    #cmd-console {
        width: auto;
        min-height: 100%;
    }

    Vertic…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by frawau
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
2 participants