• R/O
  • SSH

Joypy: Commit

This repo is not current. Development has moved from Hg to Git. For the latest code use the "Source Code" tab above to go to the "Thun" git repo or navigate to:
https://osdn.net/projects/joypy/scm/git/Thun


Commit MetaInfo

Revisão2fabf83489a67ba9cf9b8fd4b4a8600fb0c8c98d (tree)
Hora2020-05-28 03:29:12
AutorSimon Forman <sforman@hush...>
CommiterSimon Forman

Mensagem de Log

Minor cleanup.

Mudança Sumário

Diff

diff -r 1b4d236c3443 -r 2fabf83489a6 setup.py
--- a/setup.py Wed May 27 09:14:21 2020 -0700
+++ b/setup.py Wed May 27 11:29:12 2020 -0700
@@ -19,7 +19,6 @@
1919 # along with Thun. If not see <http://www.gnu.org/licenses/>.
2020 #
2121 from setuptools import setup
22-from textwrap import dedent
2322
2423
2524 setup(
diff -r 1b4d236c3443 -r 2fabf83489a6 xerblin/gui/main.py
--- a/xerblin/gui/main.py Wed May 27 09:14:21 2020 -0700
+++ b/xerblin/gui/main.py Wed May 27 11:29:12 2020 -0700
@@ -2,12 +2,11 @@
22 # -*- coding: utf-8 -*-
33 #
44 # This is a script, the module namespace is used as a kind of singleton
5-# for organizing the moving parts of the system. I forget why I didn't
6-# use a more typical class.
5+# for organizing the moving parts of the system.
76 #
8-# This docstring doubles as the log header that the system prints when
9-# the log is reset.
10-
7+# (The docstring doubles as a header that the system prints, see below.
8+# It's a two-line string broken up into chunks so you can read it in the
9+# source without wrapping. In the Text widgets it will be wrapped.)
1110 ('''\
1211 Joypy - Copyright © 2018 Simon Forman
1312 '''
@@ -55,6 +54,7 @@
5554 os.path.commonprefix((repo.controldir(), path))
5655 )
5756
57+
5858 def commands():
5959 '''
6060 We define a bunch of meta-interpreter command functions here and
@@ -144,18 +144,18 @@
144144
145145 t = TextViewerWidget(world, **VIEWER_DEFAULTS)
146146
147-log_window = tk.Toplevel()
148-# Make it so that you can't actually close the log window, if you try it
149-# will just "withdraw" (which is like minifying but without a entry in
150-# the taskbar or icon or whatever.)
151-log_window.protocol("WM_DELETE_WINDOW", log_window.withdraw)
147+# Make it so that you can't actually close the log and stack viewers, if
148+# you try it will just "withdraw" (which is like minifying but without a
149+# entry in the taskbar or icon or whatever.)
150+w = lambda T: T.protocol("WM_DELETE_WINDOW", T.withdraw)
151+
152+log_window = tk.Toplevel() ; w(log_window)
152153 log = TextViewerWidget(world, log_window, **VIEWER_DEFAULTS)
153154
154155 FONT = get_font('Iosevka', size=14) # Requires Tk root already set up.
155156
156-stack_window = tk.Toplevel()
157+stack_window = tk.Toplevel() ; w(stack_window)
157158 stack_window.title("Stack")
158-stack_window.protocol("WM_DELETE_WINDOW", log_window.withdraw)
159159 stack_viewer = StackListbox(world, stack_window, items=[], font=FONT)
160160 stack_viewer.pack(expand=True, fill=tk.BOTH)
161161 world.set_viewer(stack_viewer)
Show on old repository browser