Ticket #40360

Oberon-style tiling viewers in one window.

오픈 날짜: 2020-04-25 11:51 마지막 업데이트: 2020-05-10 09:46

Reporter:
소유자:
Status:
Closed
Component:
MileStone:
Priority:
3
Severity:
3
Resolution:
Won't Fix
File:
None

Details

Rather than free-floating windows, set up the Oberon-style tiling. Bonus points if you can resize the tracks, extra-bonus if you can change the number of tracks.

This is a little involved:

  • Tiling
  • Splitting
  • Moving between tracks
  • Moving viewers up/down in same track.
  • Grow/shrink viewers.
  • Persistent layout between restarts.

Ticket History (3/10 Histories)

2020-04-25 11:51 Updated by: sforman
  • New Ticket "Oberon-style tiling viewers in one window." created
2020-04-26 02:07 Updated by: sforman
댓글 올리기

It also implies that the message handling loop is there too.

2020-04-26 14:57 Updated by: sforman
2020-05-03 02:57 Updated by: sforman
댓글 올리기

I tried using PanedWindow and the damn thing is just broken.

The demo script works: https://effbot.org/tkinterbook/panedwindow.htm

But when I put two TextViewerWidgets in there in the exact same way they wind up on above the other and no grab-to-slide, they're static.

Rant omitted.

2020-05-03 04:24 Updated by: sforman
댓글 올리기
from tkinter import (
    Label,
    PanedWindow,
    Text,
    BOTH,
    HORIZONTAL,
    )
from joy.gui.textwidget import TextViewerWidget

class W:
  def __init__(self):
    self.text_widget = None

w = W()

m = PanedWindow(orient=HORIZONTAL)
m.pack(fill=BOTH, expand=1)

top = TextViewerWidget(w, m)
m.add(top)

bottom = TextViewerWidget(w, m)
m.add(bottom)

m.mainloop()

This works...

2020-05-03 04:52 Updated by: sforman
댓글 올리기

https://osdn.net/projects/joypy/scm/hg/Joypy/commits/9a180df09e64699336036cf720cf354b2a6a21ce

I forgot about the call to .pack() in the extra init() method. D'oh!

2020-05-07 01:48 Updated by: sforman
댓글 올리기

I'm trying out the i3 tiling window manager and having the log and scratch in the same window isn't convenient anymore. Maybe a command line option or even the ability to change back and forth at runtime?

2020-05-10 09:38 Updated by: sforman
댓글 올리기
hg diff -r  9a180df09e646993360 -r 23bd7dd5bb0c > a.patch
hg patch a.patch

Well, that was easy!

2020-05-10 09:45 Updated by: sforman
댓글 올리기
Thun$ hg log | head
changeset:   408:10b24748d6c3
tag:         tip
user:        Simon Forman <sforman@hushmail.com>
date:        Sat May 09 17:31:40 2020 -0700
summary:     With i3 use separate windows again.

changeset:   407:7a05bcb88df5
user:        Simon Forman <sforman@hushmail.com>
date:        Wed Apr 29 07:46:32 2020 -0700
summary:     Version 0.3.0

Something has gone horribly wrong. "tip" has lost primrec combinator?

Ah, no. It's still there. WTF Hg?

2020-05-10 09:46 Updated by: sforman
  • Resolution Update from None to Won't Fix
  • Status Update from Open to Closed
댓글 올리기

Just use a tiling WM like I3.

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login