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

Back to archive index
scmno****@osdn***** scmno****@osdn*****
Wed May 20 06:09:44 JST 2020


changeset 01d2e306a452 in joypy/Joypy
details: http://hg.osdn.jp/view/joypy/Joypy?cmd=changeset;node=01d2e306a452
user: Simon Forman <sform****@hushm*****>
date: Mon May 18 18:32:35 2020 -0700
description: Let's simplify.
changeset 158a41160ab4 in joypy/Joypy
details: http://hg.osdn.jp/view/joypy/Joypy?cmd=changeset;node=158a41160ab4
user: Simon Forman <sform****@hushm*****>
date: Mon May 18 19:07:07 2020 -0700
description: Rip out type code from the library.
changeset 725de4d3c5ca in joypy/Joypy
details: http://hg.osdn.jp/view/joypy/Joypy?cmd=changeset;node=725de4d3c5ca
user: Simon Forman <sform****@hushm*****>
date: Mon May 18 20:00:00 2020 -0700
description: Let's simplify.
changeset 052c38fa541b in joypy/Joypy
details: http://hg.osdn.jp/view/joypy/Joypy?cmd=changeset;node=052c38fa541b
user: Simon Forman <sform****@hushm*****>
date: Mon May 18 20:37:58 2020 -0700
description: Minor cleanup.
changeset fdefa4e4957d in joypy/Joypy
details: http://hg.osdn.jp/view/joypy/Joypy?cmd=changeset;node=fdefa4e4957d
user: Simon Forman <sform****@hushm*****>
date: Mon May 18 20:45:04 2020 -0700
description: Zero-or-one not one-or-more.
changeset 225fca61a1f9 in joypy/Joypy
details: http://hg.osdn.jp/view/joypy/Joypy?cmd=changeset;node=225fca61a1f9
user: Simon Forman <sform****@hushm*****>
date: Mon May 18 20:48:30 2020 -0700
description: round
changeset 935a5ca04a40 in joypy/Joypy
details: http://hg.osdn.jp/view/joypy/Joypy?cmd=changeset;node=935a5ca04a40
user: Simon Forman <sform****@hushm*****>
date: Tue May 19 13:01:37 2020 -0700
description: Remove the types stuff et. al.
changeset 18c912c5352d in joypy/Joypy
details: http://hg.osdn.jp/view/joypy/Joypy?cmd=changeset;node=18c912c5352d
user: Simon Forman <sform****@hushm*****>
date: Tue May 19 14:09:00 2020 -0700
description: Mention the situation with the type code.

I removed it but it's still there in tag v0.4.0 if you want to look at
it.  The Prolog code is just sooooooooo  much more elegant.  it's a rare
case, and a hard decision, but the right thing to do is throw away
working code.  Wow.

diffstat:

 .hgignore                                                   |      1 -
 docs/VUI-docs/Makefile                                      |     19 -
 docs/VUI-docs/build/doctrees/core.doctree                   |    Bin 
 docs/VUI-docs/build/doctrees/display.doctree                |    Bin 
 docs/VUI-docs/build/doctrees/environment.pickle             |    Bin 
 docs/VUI-docs/build/doctrees/index.doctree                  |    Bin 
 docs/VUI-docs/build/doctrees/main.doctree                   |    Bin 
 docs/VUI-docs/build/doctrees/persist_task.doctree           |    Bin 
 docs/VUI-docs/build/doctrees/stack_viewer.doctree           |    Bin 
 docs/VUI-docs/build/doctrees/text_viewer.doctree            |    Bin 
 docs/VUI-docs/build/doctrees/viewer.doctree                 |    Bin 
 docs/VUI-docs/build/html/.buildinfo                         |      4 -
 docs/VUI-docs/build/html/_images/Joy-VUI-screenshot.PNG     |    Bin 
 docs/VUI-docs/build/html/_images/packages_Vui.png           |    Bin 
 docs/VUI-docs/build/html/_modules/index.html                |    105 -
 docs/VUI-docs/build/html/_modules/joy/vui/core.html         |    380 -
 docs/VUI-docs/build/html/_modules/joy/vui/display.html      |    604 -
 docs/VUI-docs/build/html/_modules/joy/vui/main.html         |    274 -
 docs/VUI-docs/build/html/_modules/joy/vui/persist_task.html |    372 -
 docs/VUI-docs/build/html/_modules/joy/vui/stack_viewer.html |    175 -
 docs/VUI-docs/build/html/_modules/joy/vui/text_viewer.html  |    799 -
 docs/VUI-docs/build/html/_modules/joy/vui/viewer.html       |    345 -
 docs/VUI-docs/build/html/_sources/core.rst.txt              |      3 -
 docs/VUI-docs/build/html/_sources/display.rst.txt           |      3 -
 docs/VUI-docs/build/html/_sources/index.rst.txt             |    175 -
 docs/VUI-docs/build/html/_sources/main.rst.txt              |      3 -
 docs/VUI-docs/build/html/_sources/persist_task.rst.txt      |      3 -
 docs/VUI-docs/build/html/_sources/stack_viewer.rst.txt      |      3 -
 docs/VUI-docs/build/html/_sources/text_viewer.rst.txt       |      3 -
 docs/VUI-docs/build/html/_sources/viewer.rst.txt            |      3 -
 docs/VUI-docs/build/html/_static/Joy-VUI-screenshot.PNG     |    Bin 
 docs/VUI-docs/build/html/_static/ajax-loader.gif            |    Bin 
 docs/VUI-docs/build/html/_static/alabaster.css              |    693 -
 docs/VUI-docs/build/html/_static/basic.css                  |    676 -
 docs/VUI-docs/build/html/_static/comment-bright.png         |    Bin 
 docs/VUI-docs/build/html/_static/comment-close.png          |    Bin 
 docs/VUI-docs/build/html/_static/comment.png                |    Bin 
 docs/VUI-docs/build/html/_static/custom.css                 |      1 -
 docs/VUI-docs/build/html/_static/doctools.js                |    315 -
 docs/VUI-docs/build/html/_static/documentation_options.js   |     10 -
 docs/VUI-docs/build/html/_static/down-pressed.png           |    Bin 
 docs/VUI-docs/build/html/_static/down.png                   |    Bin 
 docs/VUI-docs/build/html/_static/file.png                   |    Bin 
 docs/VUI-docs/build/html/_static/jquery-3.2.1.js            |  10253 ----------
 docs/VUI-docs/build/html/_static/jquery.js                  |      4 -
 docs/VUI-docs/build/html/_static/language_data.js           |    297 -
 docs/VUI-docs/build/html/_static/minus.png                  |    Bin 
 docs/VUI-docs/build/html/_static/packages_Vui.png           |    Bin 
 docs/VUI-docs/build/html/_static/plus.png                   |    Bin 
 docs/VUI-docs/build/html/_static/pygments.css               |     65 -
 docs/VUI-docs/build/html/_static/searchtools.js             |    481 -
 docs/VUI-docs/build/html/_static/underscore-1.3.1.js        |    999 -
 docs/VUI-docs/build/html/_static/underscore.js              |     31 -
 docs/VUI-docs/build/html/_static/up-pressed.png             |    Bin 
 docs/VUI-docs/build/html/_static/up.png                     |    Bin 
 docs/VUI-docs/build/html/_static/websupport.js              |    808 -
 docs/VUI-docs/build/html/core.html                          |    234 -
 docs/VUI-docs/build/html/display.html                       |    286 -
 docs/VUI-docs/build/html/genindex.html                      |    463 -
 docs/VUI-docs/build/html/index.html                         |    242 -
 docs/VUI-docs/build/html/main.html                          |    180 -
 docs/VUI-docs/build/html/objects.inv                        |    Bin 
 docs/VUI-docs/build/html/persist_task.html                  |    222 -
 docs/VUI-docs/build/html/py-modindex.html                   |    153 -
 docs/VUI-docs/build/html/search.html                        |    116 -
 docs/VUI-docs/build/html/searchindex.js                     |      1 -
 docs/VUI-docs/build/html/stack_viewer.html                  |    114 -
 docs/VUI-docs/build/html/text_viewer.html                   |    124 -
 docs/VUI-docs/build/html/viewer.html                        |    150 -
 docs/VUI-docs/make.bat                                      |     35 -
 docs/VUI-docs/source/_static/Joy-VUI-screenshot.PNG         |    Bin 
 docs/VUI-docs/source/_static/packages_Vui.png               |    Bin 
 docs/VUI-docs/source/conf.py                                |    179 -
 docs/VUI-docs/source/core.rst                               |      3 -
 docs/VUI-docs/source/display.rst                            |      3 -
 docs/VUI-docs/source/index.rst                              |    175 -
 docs/VUI-docs/source/main.rst                               |      3 -
 docs/VUI-docs/source/persist_task.rst                       |      3 -
 docs/VUI-docs/source/stack_viewer.rst                       |      3 -
 docs/VUI-docs/source/text_viewer.rst                        |      3 -
 docs/VUI-docs/source/viewer.rst                             |      3 -
 docs/sphinx_docs/_build/html/_modules/joy/library.html      |    394 +-
 docs/sphinx_docs/_build/html/_modules/joy/parser.html       |      2 +-
 docs/sphinx_docs/_build/html/genindex.html                  |    107 +-
 docs/sphinx_docs/_build/html/library.html                   |     78 +-
 docs/sphinx_docs/_build/html/objects.inv                    |    Bin 
 docs/sphinx_docs/_build/html/py-modindex.html               |      5 -
 docs/sphinx_docs/_build/html/searchindex.js                 |      2 +-
 docs/sphinx_docs/_build/html/types.html                     |    208 -
 docs/sphinx_docs/types.rst                                  |     10 +-
 i3.json                                                     |     88 -
 joy/gui/__main__.py                                         |     24 -
 joy/gui/controllerlistbox.py                                |    156 -
 joy/gui/default_joy_home/definitions.txt                    |     49 -
 joy/gui/default_joy_home/log.txt                            |      4 -
 joy/gui/default_joy_home/scratch.txt                        |     59 -
 joy/gui/default_joy_home/stack.pickle                       |      1 -
 joy/gui/default_joy_home/thun.config                        |     15 -
 joy/gui/init_joy_home.py                                    |    106 -
 joy/gui/main.py                                             |    198 -
 joy/gui/mousebindings.py                                    |    211 -
 joy/gui/textwidget.py                                       |    474 -
 joy/gui/utils.py                                            |     98 -
 joy/gui/world.py                                            |    173 -
 joy/library.py                                              |    394 +-
 joy/parser.py                                               |      2 +-
 joy/utils/brutal_hackery.py                                 |     96 -
 joy/utils/compiler.py                                       |    241 -
 joy/utils/generated_library.py                              |      2 +
 joy/utils/infinite_stack.py                                 |     31 -
 joy/utils/types.py                                          |    756 -
 joy/vui/Iosevka12.BMP                                       |    Bin 
 joy/vui/README.txt                                          |    163 -
 joy/vui/__main__.py                                         |     24 -
 joy/vui/core.py                                             |    282 -
 joy/vui/debug_main.py                                       |     19 -
 joy/vui/default_joy_home/definitions.txt                    |     17 -
 joy/vui/default_joy_home/library.py                         |    206 -
 joy/vui/default_joy_home/log.txt                            |      1 -
 joy/vui/default_joy_home/menu.txt                           |     51 -
 joy/vui/default_joy_home/scratch.txt                        |     85 -
 joy/vui/default_joy_home/stack.pickle                       |      1 -
 joy/vui/display.py                                          |    510 -
 joy/vui/font_data.py                                        |    189 -
 joy/vui/init_joy_home.py                                    |    278 -
 joy/vui/main.py                                             |    179 -
 joy/vui/persist_task.py                                     |    274 -
 joy/vui/stack_viewer.py                                     |     75 -
 joy/vui/text_viewer.py                                      |    704 -
 joy/vui/viewer.py                                           |    249 -
 setup.py                                                    |     11 +-
 start-with-i3.sh                                            |      1 -
 start.bat                                                   |      1 -
 startVUI.bat                                                |      1 -
 test/test_type_inference.py                                 |    207 -
 thun/TLA.pl                                                 |    194 -
 thun/asm-dump.txt                                           |    279 -
 thun/compiler.markII.pl                                     |    649 -
 thun/compiler.pl                                            |    633 -
 thun/crap-n-stuff.txt                                       |     93 -
 thun/defs.pl                                                |     76 -
 thun/defs.txt                                               |     77 -
 thun/dump-asm.py                                            |      2 -
 thun/gnu-prolog/DCG_basics.pl                               |     57 -
 thun/gnu-prolog/Makefile                                    |     23 -
 thun/gnu-prolog/defs.pl                                     |     69 -
 thun/gnu-prolog/defs.txt                                    |     73 -
 thun/gnu-prolog/fork.pl                                     |     63 -
 thun/gnu-prolog/junk/gthun.pl                               |    120 -
 thun/gnu-prolog/junk/meta.pl                                |     10 -
 thun/gnu-prolog/junk/partev.pl                              |    167 -
 thun/gnu-prolog/junk/swi-thun.pl                            |    350 -
 thun/gnu-prolog/main.pl                                     |     52 -
 thun/gnu-prolog/math.pl                                     |     46 -
 thun/gnu-prolog/meta-defs.pl                                |     68 -
 thun/gnu-prolog/meta-math.pl                                |     89 -
 thun/gnu-prolog/parser.pl                                   |     80 -
 thun/gnu-prolog/thun.pl                                     |    198 -
 thun/joy_asm.bin                                            |    Bin 
 thun/joy_asmii.bin                                          |    Bin 
 thun/markII.rst                                             |    972 -
 thun/metalogical.pl                                         |     84 -
 thun/symbols.txt                                            |     32 -
 thun/thun.pl                                                |   1208 -
 164 files changed, 164 insertions(+), 33714 deletions(-)

diffs (truncated from 35546 to 300 lines):

diff -r 186f2bc040f6 -r 18c912c5352d .hgignore
--- a/.hgignore	Sun May 17 17:28:52 2020 -0700
+++ b/.hgignore	Tue May 19 14:09:00 2020 -0700
@@ -5,7 +5,6 @@
 .vscode
 docs/.ipynb_checkpoints
 test/*
-gnu-prolog/thun
 venv
 build
 Thun.egg-info
diff -r 186f2bc040f6 -r 18c912c5352d docs/VUI-docs/Makefile
--- a/docs/VUI-docs/Makefile	Sun May 17 17:28:52 2020 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-# Minimal makefile for Sphinx documentation
-#
-
-# You can set these variables from the command line.
-SPHINXOPTS    =
-SPHINXBUILD   = sphinx-build
-SOURCEDIR     = source
-BUILDDIR      = build
-
-# Put it first so that "make" without argument is like "make help".
-help:
-	@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
-
-.PHONY: help Makefile
-
-# Catch-all target: route all unknown targets to Sphinx using the new
-# "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
-%: Makefile
-	@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
\ No newline at end of file
diff -r 186f2bc040f6 -r 18c912c5352d docs/VUI-docs/build/doctrees/core.doctree
Binary file docs/VUI-docs/build/doctrees/core.doctree has changed
diff -r 186f2bc040f6 -r 18c912c5352d docs/VUI-docs/build/doctrees/display.doctree
Binary file docs/VUI-docs/build/doctrees/display.doctree has changed
diff -r 186f2bc040f6 -r 18c912c5352d docs/VUI-docs/build/doctrees/environment.pickle
Binary file docs/VUI-docs/build/doctrees/environment.pickle has changed
diff -r 186f2bc040f6 -r 18c912c5352d docs/VUI-docs/build/doctrees/index.doctree
Binary file docs/VUI-docs/build/doctrees/index.doctree has changed
diff -r 186f2bc040f6 -r 18c912c5352d docs/VUI-docs/build/doctrees/main.doctree
Binary file docs/VUI-docs/build/doctrees/main.doctree has changed
diff -r 186f2bc040f6 -r 18c912c5352d docs/VUI-docs/build/doctrees/persist_task.doctree
Binary file docs/VUI-docs/build/doctrees/persist_task.doctree has changed
diff -r 186f2bc040f6 -r 18c912c5352d docs/VUI-docs/build/doctrees/stack_viewer.doctree
Binary file docs/VUI-docs/build/doctrees/stack_viewer.doctree has changed
diff -r 186f2bc040f6 -r 18c912c5352d docs/VUI-docs/build/doctrees/text_viewer.doctree
Binary file docs/VUI-docs/build/doctrees/text_viewer.doctree has changed
diff -r 186f2bc040f6 -r 18c912c5352d docs/VUI-docs/build/doctrees/viewer.doctree
Binary file docs/VUI-docs/build/doctrees/viewer.doctree has changed
diff -r 186f2bc040f6 -r 18c912c5352d docs/VUI-docs/build/html/.buildinfo
--- a/docs/VUI-docs/build/html/.buildinfo	Sun May 17 17:28:52 2020 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# Sphinx build info version 1
-# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: 045f1325f6d2a1aed4dff11fe7e98c72
-tags: 645f666f9bcd5a90fca523b33c5a78b7
diff -r 186f2bc040f6 -r 18c912c5352d docs/VUI-docs/build/html/_images/Joy-VUI-screenshot.PNG
Binary file docs/VUI-docs/build/html/_images/Joy-VUI-screenshot.PNG has changed
diff -r 186f2bc040f6 -r 18c912c5352d docs/VUI-docs/build/html/_images/packages_Vui.png
Binary file docs/VUI-docs/build/html/_images/packages_Vui.png has changed
diff -r 186f2bc040f6 -r 18c912c5352d docs/VUI-docs/build/html/_modules/index.html
--- a/docs/VUI-docs/build/html/_modules/index.html	Sun May 17 17:28:52 2020 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,105 +0,0 @@
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <head>
-    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>Overview: module code — Joy VUI 0.1 documentation</title>
-    <link rel="stylesheet" href="../_static/alabaster.css" type="text/css" />
-    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
-    <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
-    <script type="text/javascript" src="../_static/jquery.js"></script>
-    <script type="text/javascript" src="../_static/underscore.js"></script>
-    <script type="text/javascript" src="../_static/doctools.js"></script>
-    <script type="text/javascript" src="../_static/language_data.js"></script>
-    <link rel="index" title="Index" href="../genindex.html" />
-    <link rel="search" title="Search" href="../search.html" />
-   
-  <link rel="stylesheet" href="../_static/custom.css" type="text/css" />
-  
-  
-  <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
-
-  </head><body>
-  
-
-    <div class="document">
-      <div class="documentwrapper">
-        <div class="bodywrapper">
-          <div class="body" role="main">
-            
-  <h1>All modules for which code is available</h1>
-<ul><li><a href="joy/vui/core.html">joy.vui.core</a></li>
-<li><a href="joy/vui/display.html">joy.vui.display</a></li>
-<li><a href="joy/vui/main.html">joy.vui.main</a></li>
-<li><a href="joy/vui/persist_task.html">joy.vui.persist_task</a></li>
-<li><a href="joy/vui/stack_viewer.html">joy.vui.stack_viewer</a></li>
-<li><a href="joy/vui/text_viewer.html">joy.vui.text_viewer</a></li>
-<li><a href="joy/vui/viewer.html">joy.vui.viewer</a></li>
-</ul>
-
-          </div>
-        </div>
-      </div>
-      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
-        <div class="sphinxsidebarwrapper">
-<h1 class="logo"><a href="../index.html">Joy VUI</a></h1>
-
-
-
-
-
-
-
-
-<h3>Navigation</h3>
-<p class="caption"><span class="caption-text">Contents:</span></p>
-<ul>
-<li class="toctree-l1"><a class="reference internal" href="../core.html">Core</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../main.html">Main Module</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../display.html">Display</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../viewer.html">Viewer</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../text_viewer.html">Text Viewer</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../stack_viewer.html">Stack Viewer</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../persist_task.html">Persist Task</a></li>
-</ul>
-
-<div class="relations">
-<h3>Related Topics</h3>
-<ul>
-  <li><a href="../index.html">Documentation overview</a><ul>
-  </ul></li>
-</ul>
-</div>
-<div id="searchbox" style="display: none" role="search">
-  <h3>Quick search</h3>
-    <div class="searchformwrapper">
-    <form class="search" action="../search.html" method="get">
-      <input type="text" name="q" />
-      <input type="submit" value="Go" />
-      <input type="hidden" name="check_keywords" value="yes" />
-      <input type="hidden" name="area" value="default" />
-    </form>
-    </div>
-</div>
-<script type="text/javascript">$('#searchbox').show(0);</script>
-        </div>
-      </div>
-      <div class="clearer"></div>
-    </div>
-    <div class="footer">
-      ©2019, Simon Forman.
-      
-      |
-      Powered by <a href="http://sphinx-doc.org/">Sphinx 1.8.5</a>
-      & <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.9</a>
-      
-    </div>
-
-    
-
-    
-  </body>
-</html>
\ No newline at end of file
diff -r 186f2bc040f6 -r 18c912c5352d docs/VUI-docs/build/html/_modules/joy/vui/core.html
--- a/docs/VUI-docs/build/html/_modules/joy/vui/core.html	Sun May 17 17:28:52 2020 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,380 +0,0 @@
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <head>
-    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>joy.vui.core — Joy VUI 0.1 documentation</title>
-    <link rel="stylesheet" href="../../../_static/alabaster.css" type="text/css" />
-    <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
-    <script type="text/javascript" id="documentation_options" data-url_root="../../../" src="../../../_static/documentation_options.js"></script>
-    <script type="text/javascript" src="../../../_static/jquery.js"></script>
-    <script type="text/javascript" src="../../../_static/underscore.js"></script>
-    <script type="text/javascript" src="../../../_static/doctools.js"></script>
-    <script type="text/javascript" src="../../../_static/language_data.js"></script>
-    <link rel="index" title="Index" href="../../../genindex.html" />
-    <link rel="search" title="Search" href="../../../search.html" />
-   
-  <link rel="stylesheet" href="../../../_static/custom.css" type="text/css" />
-  
-  
-  <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
-
-  </head><body>
-  
-
-    <div class="document">
-      <div class="documentwrapper">
-        <div class="bodywrapper">
-          <div class="body" role="main">
-            
-  <h1>Source code for joy.vui.core</h1><div class="highlight"><pre>
-<span></span><span class="c1"># -*- coding: utf-8 -*-</span>
-<span class="c1">#</span>
-<span class="c1">#    Copyright © 2019 Simon Forman</span>
-<span class="c1">#</span>
-<span class="c1">#    This file is part of Thun</span>
-<span class="c1">#</span>
-<span class="c1">#    Thun is free software: you can redistribute it and/or modify</span>
-<span class="c1">#    it under the terms of the GNU General Public License as published by</span>
-<span class="c1">#    the Free Software Foundation, either version 3 of the License, or</span>
-<span class="c1">#    (at your option) any later version.</span>
-<span class="c1">#</span>
-<span class="c1">#    Thun is distributed in the hope that it will be useful,</span>
-<span class="c1">#    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
-<span class="c1">#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
-<span class="c1">#    GNU General Public License for more details.</span>
-<span class="c1">#</span>
-<span class="c1">#    You should have received a copy of the GNU General Public License</span>
-<span class="c1">#    along with Thun.  If not see <http://www.gnu.org/licenses/>.</span>
-<span class="c1">#</span>
-<span class="sd">'''</span>
-
-<span class="sd">Core</span>
-<span class="sd">=====================</span>
-
-<span class="sd">The core module defines a bunch of system-wide "constants" (some colors</span>
-<span class="sd">and PyGame event groups), the message classes for Oberon-style message</span>
-<span class="sd">passing, a "world" class that holds the main context for the system, and</span>
-<span class="sd">a mainloop class that manages the, uh, main loop (the PyGame event queue.)</span>
-
-<span class="sd">'''</span>
-<span class="kn">from</span> <span class="nn">sys</span> <span class="k">import</span> <span class="n">stderr</span>
-<span class="kn">from</span> <span class="nn">traceback</span> <span class="k">import</span> <span class="n">format_exc</span>
-<span class="kn">import</span> <span class="nn">pygame</span>
-<span class="kn">from</span> <span class="nn">joy.joy</span> <span class="k">import</span> <span class="n">run</span>
-<span class="kn">from</span> <span class="nn">joy.utils.stack</span> <span class="k">import</span> <span class="n">stack_to_string</span>
-
-
-<span class="n">COMMITTER</span> <span class="o">=</span> <span class="s1">'Joy <auto-****@examp*****>'</span>
-
-
-<span class="n">BLACK</span> <span class="o">=</span> <span class="n">FOREGROUND</span> <span class="o">=</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span>
-<span class="n">GREY</span> <span class="o">=</span> <span class="mi">127</span><span class="p">,</span> <span class="mi">127</span><span class="p">,</span> <span class="mi">127</span>
-<span class="n">WHITE</span> <span class="o">=</span> <span class="n">BACKGROUND</span> <span class="o">=</span> <span class="mi">255</span><span class="p">,</span> <span class="mi">255</span><span class="p">,</span> <span class="mi">255</span>
-<span class="n">BLUE</span> <span class="o">=</span> <span class="mi">100</span><span class="p">,</span> <span class="mi">100</span><span class="p">,</span> <span class="mi">255</span>
-<span class="n">GREEN</span> <span class="o">=</span> <span class="mi">70</span><span class="p">,</span> <span class="mi">200</span><span class="p">,</span> <span class="mi">70</span>
-
-
-<span class="n">MOUSE_EVENTS</span> <span class="o">=</span> <span class="nb">frozenset</span><span class="p">({</span>
-    <span class="n">pygame</span><span class="o">.</span><span class="n">MOUSEMOTION</span><span class="p">,</span>
-    <span class="n">pygame</span><span class="o">.</span><span class="n">MOUSEBUTTONDOWN</span><span class="p">,</span>
-    <span class="n">pygame</span><span class="o">.</span><span class="n">MOUSEBUTTONUP</span>
-    <span class="p">})</span>
-<span class="s1">'PyGame mouse events.'</span>
-
-<span class="n">ARROW_KEYS</span> <span class="o">=</span> <span class="nb">frozenset</span><span class="p">({</span>
-    <span class="n">pygame</span><span class="o">.</span><span class="n">K_UP</span><span class="p">,</span>
-    <span class="n">pygame</span><span class="o">.</span><span class="n">K_DOWN</span><span class="p">,</span>
-    <span class="n">pygame</span><span class="o">.</span><span class="n">K_LEFT</span><span class="p">,</span>
-    <span class="n">pygame</span><span class="o">.</span><span class="n">K_RIGHT</span>
-    <span class="p">})</span>
-<span class="s1">'PyGame arrow key events.'</span>
-
-
-<span class="n">TASK_EVENTS</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">(</span><span class="nb">range</span><span class="p">(</span><span class="n">pygame</span><span class="o">.</span><span class="n">USEREVENT</span><span class="p">,</span> <span class="n">pygame</span><span class="o">.</span><span class="n">NUMEVENTS</span><span class="p">))</span>
-<span class="s1">'Keep track of all possible task events.'</span>
-
-<span class="n">AVAILABLE_TASK_EVENTS</span> <span class="o">=</span> <span class="nb">set</span><span class="p">(</span><span class="n">TASK_EVENTS</span><span class="p">)</span>
-<span class="s1">'Task IDs that have not been assigned to a task.'</span>
-
-<span class="n">ALLOWED_EVENTS</span> <span class="o">=</span> <span class="p">[</span><span class="n">pygame</span><span class="o">.</span><span class="n">QUIT</span><span class="p">,</span> <span class="n">pygame</span><span class="o">.</span><span class="n">KEYUP</span><span class="p">,</span> <span class="n">pygame</span><span class="o">.</span><span class="n">KEYDOWN</span><span class="p">]</span>
-<span class="n">ALLOWED_EVENTS</span><span class="o">.</span><span class="n">extend</span><span class="p">(</span><span class="n">MOUSE_EVENTS</span><span class="p">)</span>
-<span class="n">ALLOWED_EVENTS</span><span class="o">.</span><span class="n">extend</span><span class="p">(</span><span class="n">TASK_EVENTS</span><span class="p">)</span>
-<span class="s1">'Event "mask" for PyGame event queue, we are only interested in these event types.'</span>
-
-
-<span class="n">ERROR</span> <span class="o">=</span> <span class="o">-</span><span class="mi">1</span>
-<span class="n">PENDING</span> <span class="o">=</span> <span class="mi">0</span>
-<span class="n">SUCCESS</span> <span class="o">=</span> <span class="mi">1</span>
-<span class="c1"># 'Message status codes...  dunno if this is a good idea or not...</span>
-
-
-<div class="viewcode-block" id="Message"><a class="viewcode-back" href="../../../core.html#joy.vui.core.Message">[docs]</a><span class="k">class</span> <span class="nc">Message</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
-    <span class="sd">'''Message base class.  Contains ``sender`` field.'''</span>
-    <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">sender</span><span class="p">):</span>
-        <span class="bp">self</span><span class="o">.</span><span class="n">sender</span> <span class="o">=</span> <span class="n">sender</span></div>
-
-
-<div class="viewcode-block" id="CommandMessage"><a class="viewcode-back" href="../../../core.html#joy.vui.core.CommandMessage">[docs]</a><span class="k">class</span> <span class="nc">CommandMessage</span><span class="p">(</span><span class="n">Message</span><span class="p">):</span>


More information about the Joypy-announce mailing list
Back to archive index