Replies: 1 comment
-
Oh golly, I had an answer written up to this days ago! At the moment there is no (easy) way to detect when a widget goes off screen sadly. At some point in the near-ish future we will have a better scrolling implementation that will allow this to happen, however. You can see an example of me hacking around this same limitation in the pytermgui/pytermgui/widgets/input_field.py Lines 428 to 457 in 9e5e708 If you want to play around with it, I would suggest testing widgets against the container's |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a window with several buttons (added dynamically, so I don't know how many beforehand ) under each other. Overflow is set to SCROLL which works fine when navigating with the mouse, but when I want to select these buttons with the arrow keys and I select a button that is offscreen, the "list" doesn't scroll down and the selected button is not visible.
How should I implement that the list scrolls down (or up), when a button that is offscreen is selected ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions