Add listbox stack display
Found the old code (at least one version of it): https://github.com/calroc/xerblin/releases/tag/oldroot
Checked it out and ran it, it worked without any problems.
xerblin$ PYTHONPATH=. bin/xerblin-fresh
https://osdn.net/projects/joypy/scm/hg/Joypy/commits/c174cb0018d8d1dab80349b3d76c4d94a3f5faa4
Extracted the list box widget.
It takes a list(-like object) and rearranges it on successful drag. I think the easiest thing to do is just brute convert from stack to list and back as needed. No fancy sync.
Going from the DnD operation to the World is straightforward. Going from the world to the listbox involves overriding the print_stack() method I think.
https://osdn.net/projects/joypy/scm/hg/Joypy/commits/6a58e176e9ea95361fb1060deda887c3ba38f515
Much nicer.
Still some little issues:
Long ago I implemented a ListBox widget for displaying the stack that allowed you to drag-n-drop items on the stack to rearrange them.
Now that the log and scratch text are combined in one window I think the stack viewer might be a good addition. (Hopefully I can find the old code!)