Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove scrollbar from RichLog or Log widgets. #5507

Closed
lucawrabetz opened this issue Feb 7, 2025 · 1 comment
Closed

Remove scrollbar from RichLog or Log widgets. #5507

lucawrabetz opened this issue Feb 7, 2025 · 1 comment

Comments

@lucawrabetz
Copy link

lucawrabetz commented Feb 7, 2025

Can I remove the scrollbar from these two types of widgets? When I initialize one as follows:

from textual.widgets import RichLog

...

class MainCLI(RichLog):
    pass

...

class TUI(App):
    CSS_PATH = "app.tcss"
    BINDINGS = [
        Binding(key="q", action="quit", description="quit"),
    ]

    def compose(self) -> ComposeResult:
        """Create child widgets for the app."""
        with Horizontal(id=_APP_GRID):
            with Vertical(id=_LEFT_COL):
                yield MainCLI()
            with Vertical(id=_RIGHT_COL):
                yield OptiTop()
                yield SpaceView()
        yield OptiFooter()

...

if __name__ == "__main__":
    app = TUI()
    app.run()

I get something like:

Image

I would like to remove the scrollbar to the right (I would prefer to scroll with j,k or up, down keybindings, and save space on the screen). How do I do this?

Copy link

github-actions bot commented Feb 7, 2025

We found the following entry in the FAQ which you may find helpful:

Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.

This is an automated reply, generated by FAQtory

@Textualize Textualize locked and limited conversation to collaborators Feb 7, 2025
@willmcgugan willmcgugan converted this issue into discussion #5508 Feb 7, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant