prompt-toolkit / prompt-toolkit/python-prompt-toolkit
[Question] scrollable-panes example whether mouse events are supported ?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
I found class ScrollablePane has handler mouse event,
https://github.com/prompt-toolkit/python-prompt-toolkit/blob/0b73123da5d27ff20178e22025a46f93f3f37687/prompt_toolkit/layout/scrollable_pane.py#L297
But , I am run this exemple , mouse scroll event and mouse click event (click and drag scrollbar) not working.
https://github.com/prompt-toolkit/python-prompt-toolkit/blob/0b73123da5d27ff20178e22025a46f93f3f37687/examples/full-screen/scrollable-panes/with-completion-menu.py#L75
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with prompt_toolkit/layout/scrollable_pane.py around the ScrollablePane mouse-event handler and reproduce the behavior using examples/full-screen/scrollable-panes/with-completion-menu.py. Check whether mouse scrolling and clicking or dragging the scrollbar are intended to work; done means the supported behavior is established and the issue is clarified with the relevant result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100