Ticket #40360

Oberon-style tiling viewers in one window.

Date d'ouverture: 2020-04-25 11:51 Dernière mise à jour: 2020-05-10 09:46

Rapporteur:
Propriétaire:
État:
Atteints
Composant:
Priorité:
3
Sévérité:
3
Résolution:
Won't Fix
Fichier:
Aucun

Détails

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
Commentaire

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
Commentaire

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
Commentaire
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
Commentaire

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
Commentaire

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
Commentaire
hg diff -r  9a180df09e646993360 -r 23bd7dd5bb0c > a.patch
hg patch a.patch

Well, that was easy!

2020-05-10 09:45 Updated by: sforman
Commentaire
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
  • Résolution Update from Aucun to Won't Fix
  • État Update from Ouvert to Atteints
Commentaire

Just use a tiling WM like I3.

Attachment File List

No attachments

Modifier

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