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

Advanced graphical widgets #90

Open
peterbrittain opened this issue Sep 16, 2017 · 6 comments
Open

Advanced graphical widgets #90

peterbrittain opened this issue Sep 16, 2017 · 6 comments
Milestone

Comments

@peterbrittain
Copy link
Owner

Not quite sure what these would be just yet, but look at https://github.com/yaronn/blessed-contrib for inspiration.

@fpp-gh
Copy link

fpp-gh commented May 22, 2019

Hi,
This issue had no followups, so I'm hijacking it although my "advanced widget" request is totally not graphical :-)
Asciimatics is a really fun lib and looks like a good fit for some form-based apps I'd like to have in a terminal.
One gadget that seems to be missing is the (usually) ubiquitious "tab panel", to switch views in a container (like the one at the top of this page :-).
Would that be a doable/worthy addition to the toolbox ? Or maybe it isn't there because it's too trivial to put together using the existing API ? (I confess I haven't dug in at all yet, just tried the samples :-).
Thanks for any hints,
fp

@peterbrittain
Copy link
Owner Author

Thanks. Nice to hear positive feedback about the project!

It's not trivial to create a tabbed view with the current widgets, but I could see a way to do it with a new type of Layout, which effectively treated each column as a separate tab. Would require some refactoring of the existing Layout class to put common function into a base class.

@fpp-gh
Copy link

fpp-gh commented May 23, 2019

Hi, thanks for the quick response !
That would certainly be a useful addition to the lib.
Short term, my use case is simple enough that I could probably "cheat" by starting with a single tab panel, and refresh its contents each time a tab button is activated.
I'll try to cobble together a POC, but it won't do for most other use cases...

@peterbrittain
Copy link
Owner Author

Cool. I'm happy to offer some pointers if you want any help.

@fpp-gh
Copy link

fpp-gh commented May 23, 2019

Thanks Peter : being an old, slow, self-taught coder, that's an offer I seldom turn down :-)

@peterbrittain
Copy link
Owner Author

Wise words. As you have questions, feel free to ask on the gitter channel...

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

No branches or pull requests

2 participants