FloatContainer and Floats with mouse positioning and resizing - a la TurboVision
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
Research direction
Start by tracing FloatContainer, its mouse-support behavior, and the keybind callback described in the issue. Determine how focused floats receive positioning and resizing events. Done means floats in a FloatContainer can be moved and resized with the mouse and keyboard in a TurboVision-style desktop layout.
Written by the indexing model from the issue text.
Description
I'd like to use a FloatContainer as a 'desktop' motif (MDI container), with the floats resizable and movable via the mouse. I'm going for the look and feel of character graphics applications from the DOS era.
Currently, enabling mouse support only allows one to focus a container, but not move it.
I think at least with existing features, it would be possible to at least have dynamic Window movement and resizing using arrow keys. The keybind callback would write to the top/left arguments to the focused Float somehow. A similar feature was available in TurboVision from a menu pick.
Here's an example of what I have so far in prompt toolkit.
And here are some examples of the type of user interface I'm trying to emulate. The Windows in these applications are movable using the mouse and keyboard.
VB 1.0 for DOS
Borland's TurboVision (C++) Demo Application
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
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.
More from prompt-toolkit/python-prompt-toolkit
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
prompt-toolkit/python-prompt-toolkit#2073 · 2 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
prompt-toolkit/python-prompt-toolkit#1154 · 1 comment ·
All issues in prompt-toolkit/python-prompt-toolkit
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100