[Joypy-announce] joypy/Joypy: 4 new changesets

Zurück zum Archiv-Index
scmno****@osdn***** scmno****@osdn*****
Mon May 11 04:19:01 JST 2020


changeset e27c5aeaf86a in joypy/Joypy
details: http://hg.osdn.jp/view/joypy/Joypy?cmd=changeset;node=e27c5aeaf86a
user: Simon Forman <sform****@hushm*****>
date: Sun May 10 10:35:42 2020 -0700
description: Set the font on the listbox.
changeset 8f90f757e783 in joypy/Joypy
details: http://hg.osdn.jp/view/joypy/Joypy?cmd=changeset;node=8f90f757e783
user: Simon Forman <sform****@hushm*****>
date: Sun May 10 10:42:10 2020 -0700
description: show_stack in case you close the stack window.
changeset e0d77ca61acc in joypy/Joypy
details: http://hg.osdn.jp/view/joypy/Joypy?cmd=changeset;node=e0d77ca61acc
user: Simon Forman <sform****@hushm*****>
date: Sun May 10 12:17:54 2020 -0700
description: I3 config with suggested layout.

Stack in upper left corner, log below in same width, scratch window takes up the rest.
changeset 0f614d4f2d0f in joypy/Joypy
details: http://hg.osdn.jp/view/joypy/Joypy?cmd=changeset;node=0f614d4f2d0f
user: Simon Forman <sform****@hushm*****>
date: Sun May 10 12:18:34 2020 -0700
description: Try logging just the commands.

diffstat:

 i3.json          |  88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 joy/gui/main.py  |   8 ++++-
 joy/gui/world.py |   5 +-
 3 files changed, 98 insertions(+), 3 deletions(-)

diffs (139 lines):

diff -r 6a58e176e9ea -r 0f614d4f2d0f i3.json
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/i3.json	Sun May 10 12:18:34 2020 -0700
@@ -0,0 +1,88 @@
+// vim:ts=4:sw=4:et
+{
+    // splitv split container with 2 children
+    "border": "normal",
+    "floating": "auto_off",
+    "layout": "splitv",
+    "percent": 0.25,
+    "type": "con",
+    "nodes": [
+        {
+            // splith split container with 1 children
+            "border": "normal",
+            "floating": "auto_off",
+            "layout": "splith",
+            "percent": 0.25,
+            "type": "con",
+            "nodes": [
+                {
+                    "border": "normal",
+                    "current_border_width": 2,
+                    "floating": "auto_off",
+                    "geometry": {
+                       "height": 244,
+                       "width": 204,
+                       "x": 0,
+                       "y": 0
+                    },
+                    "name": "Stack",
+                    "percent": 1,
+                    "swallows": [
+                       {
+                          "class": "^Toplevel$",
+                          "title": "^Stack$"
+                       // "transient_for": "^$"
+                       }
+                    ],
+                    "type": "con"
+                }
+            ]
+        },
+        {
+            "border": "normal",
+            "current_border_width": 2,
+            "floating": "auto_off",
+            "geometry": {
+               "height": 200,
+               "width": 200,
+               "x": 0,
+               "y": 0
+            },
+            "name": "Log",
+            "percent": 0.75,
+            "swallows": [
+               {
+                  "class": "^Toplevel$",
+               // "instance": "^140192861986616$",
+                  "title": "^Log$"
+               // "transient_for": "^$"
+               }
+            ],
+            "type": "con"
+        }
+    ]
+}
+
+{
+    "border": "normal",
+    "current_border_width": 2,
+    "floating": "auto_off",
+    "geometry": {
+       "height": 200,
+       "width": 200,
+       "x": 0,
+       "y": 0
+    },
+    "name": "Joy - /home/sforman/.joypy",
+    "percent": 0.75,
+    "swallows": [
+       {
+          "class": "^Tk$"
+       // "instance": "^tk$",
+       // "title": "^Joy\\ \\-\\ \\/home\\/sforman\\/\\.joypy$"
+       // "transient_for": "^$"
+       }
+    ],
+    "type": "con"
+}
+
diff -r 6a58e176e9ea -r 0f614d4f2d0f joy/gui/main.py
--- a/joy/gui/main.py	Sun May 10 08:38:37 2020 -0700
+++ b/joy/gui/main.py	Sun May 10 12:18:34 2020 -0700
@@ -122,6 +122,12 @@
 		return args
 
 
+	def show_stack(*args):
+		stack_window.wm_deiconify()
+		stack_window.update()
+		return args
+
+
 	def grand_reset(s, e, d):
 		stack = world.load_stack() or ()
 		log.reset()
@@ -159,7 +165,7 @@
 stack_window = tk.Toplevel()
 stack_window.title("Stack")
 stack_window.protocol("WM_DELETE_WINDOW", log_window.withdraw)
-stack_viewer = StackListbox(world, stack_window, items=[])
+stack_viewer = StackListbox(world, stack_window, items=[], font=FONT)
 stack_viewer.pack(expand=True, fill=tk.BOTH)
 world.set_viewer(stack_viewer)
 
diff -r 6a58e176e9ea -r 0f614d4f2d0f joy/gui/world.py
--- a/joy/gui/world.py	Sun May 10 08:38:37 2020 -0700
+++ b/joy/gui/world.py	Sun May 10 12:18:34 2020 -0700
@@ -129,7 +129,8 @@
 		command = command.strip()
 		if self.has(command) and self.check(command) == False:  # not in {True, None}:
 			return
-		print('\njoy?', command)
+		# print('\njoy?', command)
+		print(command)
 		super(StackDisplayWorld, self).interpret(command)
 
 	def print_stack(self):
@@ -163,7 +164,7 @@
 		self.viewer.update_stack(self.stack)
 
 	def print_stack(self):
-		StackDisplayWorld.print_stack(self)
+		# StackDisplayWorld.print_stack(self)
 		if self.viewer:
 			self.viewer.update_stack(self.stack)
 



More information about the Joypy-announce mailing list
Zurück zum Archiv-Index