-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add a way to know if the mouse clicks on some text. #174
Comments
duplicate of #7, code already exists, just needs to be added with tests and a PR. As for a TUI, I'm open to very primitive user interface additions (#167, #134), perhaps a basic readline implementation, but I don't wish to add anything beyond a few dozen lines of code for each widget, and they must come with tests and documentation. blessed is to SDL as Urwid and others are to Qt. Blessed just wishes to provide the basic, portable primitives for building terminal apps and libraries without any opinion on appearance or interface. "Widgets" are very stylistic and opinionated, folks would want the appearance to be very customizable, and with, or without, asyncio support, to support asynchronous code, or by callbacks, etc. It would quickly enlarge the library size and still yet, many folks might be unsatisfied with the API. I've done a lot of work in building a TUI above blessed in an old project of mine (x84), and yet downstream developers/users would go on to customize and write their own TUI's anyway, for style reasons, a majority of the code I wrote was to support customization, "themes" and so on, but the documentation wasn't there, it was all too overwhelming, it's a very difficult problem. For great input, try https://github.com/prompt-toolkit/python-prompt-toolkit/ blessed can interoperate with any other curses library, so it's no problem to mix and match them together. best wishes and thanks for your thoughts |
Hi, I have been looking at the docs and reviewing the examples of this library and I found it amazing, but it has a downside, the inability to kind of make somethings like "widgets" with its simplicity, e.g. TUI buttons are an inconvenience to implement with the current set up, and trying to implement more widgets could potentially end up harder, any way to make it at the least easier for people to create their own widgets, at most have some barebones widgets implementation? Maybe, it could have to do with comparing the (x, y) of the cursor's click event and the area that the text spans?
The text was updated successfully, but these errors were encountered: