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 |
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 |
|
|