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 VerticalScroll
from textual.widgets import Checkbox

class CheckboxListApp(App[None]):

    CSS = """
    VerticalScroll Checkbox {
        border: none;
        margin: 0 0 1 0;
    }
    """

    def compose(self) -> ComposeResult:
        with VerticalScroll():
            for n in range(100):
                yield Checkbox(f"This is checkbox {n}")

if __name__ == "__main__":
    CheckboxListApp().run()

Replies: 1 comment 3 replies

Comment options

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

@jakubziebin
Comment options

@davep
Comment options

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