annotate light8/stage.py @ 5:a76f775bb635

wrote some docstring
author drewp
date Sun, 07 Jul 2002 01:24:00 +0000
parents 45b12307c695
children 119369e60da1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
1
45b12307c695 Initial revision
drewp
parents:
diff changeset
2 class Stage(Canvas):
45b12307c695 Initial revision
drewp
parents:
diff changeset
3
45b12307c695 Initial revision
drewp
parents:
diff changeset
4 """a fancy widget that shows light locations (and optionally their
45b12307c695 Initial revision
drewp
parents:
diff changeset
5 aim locations on an image of the stage. you can select or
45b12307c695 Initial revision
drewp
parents:
diff changeset
6 multiselect lights and drag them up or down to change their
45b12307c695 Initial revision
drewp
parents:
diff changeset
7 brightness.
45b12307c695 Initial revision
drewp
parents:
diff changeset
8
45b12307c695 Initial revision
drewp
parents:
diff changeset
9 ctrl-a is select all,
45b12307c695 Initial revision
drewp
parents:
diff changeset
10 ctrl-shift-a or clicking on no light deselects all,
45b12307c695 Initial revision
drewp
parents:
diff changeset
11 re-clicking a light with shift key down toggles whether it's in the selection.
45b12307c695 Initial revision
drewp
parents:
diff changeset
12 ctrl-drag-rectangle deselects the lights in the rectangle,
45b12307c695 Initial revision
drewp
parents:
diff changeset
13 shift-drag-rectangle selects the lights in the rectangle,
45b12307c695 Initial revision
drewp
parents:
diff changeset
14 drag-rectangle selects only the lights in the rectangle.
45b12307c695 Initial revision
drewp
parents:
diff changeset
15
5
a76f775bb635 wrote some docstring
drewp
parents: 0
diff changeset
16 a light can be selected on its location point, it's aim point
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
17 (which may or may not be present), or its name.
45b12307c695 Initial revision
drewp
parents:
diff changeset
18
45b12307c695 Initial revision
drewp
parents:
diff changeset
19 lights should be able to be interactively 'locked', which blocks
45b12307c695 Initial revision
drewp
parents:
diff changeset
20 them from being selected.
45b12307c695 Initial revision
drewp
parents:
diff changeset
21
45b12307c695 Initial revision
drewp
parents:
diff changeset
22 """
45b12307c695 Initial revision
drewp
parents:
diff changeset
23 def __init__(self,parent,**kw):
45b12307c695 Initial revision
drewp
parents:
diff changeset
24 Canvas.__init__(self,parent,**kw)
5
a76f775bb635 wrote some docstring
drewp
parents: 0
diff changeset
25 if 'stageimage' in kw:
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
26