prompt-toolkit / prompt-toolkit/python-prompt-toolkit
How to Parallel functions to change the menu and or the buffer?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
How to Parallel (Run more then 1 function simultaneously parallel to the application) functions to change the menu and or the buffer in a fullscreen app ? And is it possible to change layouts dynamically ?
I have tryed this:
def run():
t1 = threading.Thread(target=application.run())
t2 = threading.Thread(target=testprt())
t1.daemon = True
t2.daemon = True
t1.start()
t2.start()
# application.run()
if __name__ == '__main__':
run()
The testprt()
def testprt():
while True:
up_r_buffer.text = "1\n"
time.sleep(1)
FullCode:
Here
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the inline Python example and the linked Pastebin code, then inspect how the application, menu, and buffer are used in the reported fullscreen scenario. A useful outcome would require a scoped, reproducible question and a decided answer or documentation change covering parallel execution and dynamic layouts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100