Skip to content
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

Scrollable form #111

Open
lykius opened this issue Dec 27, 2020 · 0 comments
Open

Scrollable form #111

lykius opened this issue Dec 27, 2020 · 0 comments

Comments

@lykius
Copy link

lykius commented Dec 27, 2020

Hi all,

I've seen an other issue asking a similar question but I couldn't understand the proposed solution.
My problem is that sometimes, in my npyscreen application, I get a NotEnoughSpaceForWidget because the windows is too short to contain all the widgets. Is it possible to create a scrollable Form instead of raising the error?

For instance, I'm thinking about something like this, considering 5 widgets and enough space only for 3 lines:

**************************
*    widget1: something  *
*    widget2: something  *
*  - MORE -              *
**************************

User scrolls down (most likely he presses down arrow) and get:

**************************
*    widget3: something  *
*    widget4: something  *
*  - MORE -              *
**************************

User scrolls down (i.e. down arrow) once again and get:

**************************
*    widget5: something  *
*                        *
*                        *
**************************

Is this achievable somehow?

Thanks in advance for any help!
Luca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant