0
|
1
|
|
2 class Stage(Canvas):
|
|
3
|
|
4 """a fancy widget that shows light locations (and optionally their
|
|
5 aim locations on an image of the stage. you can select or
|
|
6 multiselect lights and drag them up or down to change their
|
|
7 brightness.
|
|
8
|
|
9 ctrl-a is select all,
|
|
10 ctrl-shift-a or clicking on no light deselects all,
|
|
11 re-clicking a light with shift key down toggles whether it's in the selection.
|
|
12 ctrl-drag-rectangle deselects the lights in the rectangle,
|
|
13 shift-drag-rectangle selects the lights in the rectangle,
|
|
14 drag-rectangle selects only the lights in the rectangle.
|
|
15
|
5
|
16 a light can be selected on its location point, it's aim point
|
0
|
17 (which may or may not be present), or its name.
|
|
18
|
|
19 lights should be able to be interactively 'locked', which blocks
|
|
20 them from being selected.
|
|
21
|
|
22 """
|
|
23 def __init__(self,parent,**kw):
|
|
24 Canvas.__init__(self,parent,**kw)
|
5
|
25 if 'stageimage' in kw:
|
0
|
26
|