[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/doc/pegboard/gfxdemos_framework--tjl peg.rst
From: |
Janne V. Kujala |
Subject: |
[Gzz-commits] gzz/doc/pegboard/gfxdemos_framework--tjl peg.rst |
Date: |
Fri, 13 Dec 2002 07:33:27 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Janne V. Kujala <address@hidden> 02/12/13 07:33:26
Modified files:
doc/pegboard/gfxdemos_framework--tjl: peg.rst
Log message:
demo files should be modules
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/doc/pegboard/gfxdemos_framework--tjl/peg.rst.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: gzz/doc/pegboard/gfxdemos_framework--tjl/peg.rst
diff -u gzz/doc/pegboard/gfxdemos_framework--tjl/peg.rst:1.2
gzz/doc/pegboard/gfxdemos_framework--tjl/peg.rst:1.3
--- gzz/doc/pegboard/gfxdemos_framework--tjl/peg.rst:1.2 Fri Dec 6
07:02:17 2002
+++ gzz/doc/pegboard/gfxdemos_framework--tjl/peg.rst Fri Dec 13 07:33:26 2002
@@ -2,9 +2,9 @@
PEG gfxdemos_framework--tjl:
=============================================================
-:Author: Tuomas J. Lukka
-:Last-Modified: $Date: 2002/12/06 12:02:17 $
-:Revision: $Revision: 1.2 $
+:Author: Tuomas J. Lukka, Janne V. Kujala
+:Last-Modified: $Date: 2002/12/13 12:33:26 $
+:Revision: $Revision: 1.3 $
:Status: Incomplete
The current gfx/demos directory is a mess. To see an effect,
@@ -55,6 +55,8 @@
Change the file/directory structure of the demos so that
one file shall contain at most **one** scene object,
and the name of that object will be ``Scene``.
+The scene files should be importable as modules,
+independent of the ``gldemo.py`` wrapper.
If several scenes move around a common theme,
they should be placed in their own directory (python
module).
@@ -65,6 +67,8 @@
The ``gldemo.py`` wrapper should then be changed to
accept one or more file or directory names.
+The global window variable ``w`` should be moved
+to its own module.
Scene objects
-------------
@@ -83,11 +87,11 @@
misses the point entirely. The reader, unfamiliar with
the idea, does **not** understand why this is something
she'd like to see. Demos not fulfilling this requirement
-shall be relegated to the directory ``gfx/demo/pointless''.
+shall be relegated to the directory ``gfx/demo/pointless``.
-Instead of the current ``key(self, k)'' mechanism where
+Instead of the current ``key(self, k)`` mechanism where
key presses are decoded in a sequence of if statements,
-each Scene class shall contain a table ``keys''::
+each Scene class shall contain a table ``keys``::
keys = [
Toggle("fillets", 0, "Filleting", "f"),
@@ -96,7 +100,7 @@
...
]
-where the ``Toggle'' and others come from XXX.
+where the ``Toggle`` and others come from XXX.
The scene mechanism ::
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz-commits] gzz/doc/pegboard/gfxdemos_framework--tjl peg.rst,
Janne V. Kujala <=