Closed decentral1se closed 6 years ago
I've also tried to add an accept_handler=accept_handler
to my Buffer
but it is not running :/
These are valid remarks. I'll fix it ASAP.
Hi @lwm,
Did you try running using master
instead of the latest Pypi release?
Some time ago I did this fix: https://github.com/jonathanslenders/python-prompt-toolkit/commit/4aee265b184b5011d6698083a3ada51323afd019
That should make the "body" attribute of a Frame
object changeable.
Lovely job, can confirm that latest master is making this all possible. Thanks!
This is related to full screen applications and widgets.
I have the following prompt embedded in a
FloatContainer
:So, I can start to see the following:
I then wire up a keybinding to handle hitting enter when submitting some input:
This is following the calculator.py example in the examples/full-screen folder.
However, I soon find that:
Now, I've poked around and can't see an API for getting access to writing new text values from the Frame. I just happen to like the clarity of the
Frame
borders for my UI, so interested to see if this can be solved.Any thoughts? I'd be happy to submit a PR if something needs doing.