/[gzz]/gzz/doc/pegboard/gfxdemos_framework--tjl/peg.rst
ViewVC logotype

Diff of /gzz/doc/pegboard/gfxdemos_framework--tjl/peg.rst

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by humppake, Wed Dec 18 00:24:23 2002 UTC revision 1.5 by tjl, Thu Dec 19 15:02:33 2002 UTC
# Line 17  Issues Line 17  Issues
17  - How should gldemo.py move between scenes if started with  - How should gldemo.py move between scenes if started with
18    more than one?    more than one?
19    
20        RESOLVED: For less than ten, function keys.
21        For more, TBD.
22    
23  - What module for ``Toggle`` &c?  - What module for ``Toggle`` &c?
24    
25        RESOLVED: ``gfx.util.demokeys``.
26    
27  - Is the declarative key handling powerful enough?  - Is the declarative key handling powerful enough?
28    
29      RESOLVED: Yes, since with the ``Custom`` type it      RESOLVED: Yes, since with the ``Custom`` type it
# Line 93  Instead of the current ``key(self, k)`` Line 98  Instead of the current ``key(self, k)``
98  key presses are decoded in a sequence of if statements,  key presses are decoded in a sequence of if statements,
99  each Scene class shall contain a table ``keys``::  each Scene class shall contain a table ``keys``::
100            
101      keys = [      keys = KeyPresses(
102          Toggle("fillets", 0, "Filleting", "f"),          Toggle("fillets", 0, "filleting", "f"),
103          SlideLog("zoom", 900.0, "Zoom factor", "<", ">"),          SlideLog("zoom", 900.0, "Zoom factor", "<", ">"),
104          Custom("setFlurbType", re.compile("[0-9]")),          Custom("setFlurbType", re.compile("[0-9]")),
105          ...          ...
106      ]      )
107    
108  where the ``Toggle`` and others come from XXX.  where the ``Toggle`` and others come from ``gfx.util.demokeys``.
109    
110  The scene mechanism ::  The scene mechanism ::
111            

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26