Signal plate object type.
These are on the control panel and represent levers for controlling track signals (control point signals). They have a lever that can be in three positions, Left, Center, or Right.
- Parameters
-
_ctcpanel | The CTCPanel megawidget. |
_canvas | The control panel canvas to draw the switch plate on. |
... | Options:
- -x The x coordinate of the object (readonly, default 0).
- -y The y coordinate of the object (readonly, default 0).
- -label The label of the switch plate (default 1).
- -controlpoint The name of the control point this switch is part of (readonly, default CP1).
- -leftcommand The Tcl script to run when switch is set to left (default {}).
- -centercommand The Tcl script to run when switch is set to center (default {}).
- -rightcommand The Tcl script to run when switch is set to right (default {}).
|
- Defined coords terminals:
- xy The base coords of the object.
Defined values (states):
- Left Left position.
- Right Right position.
- Center Center position.
Defined indicators:
- L Left indicator, green if on.
- C Center indicator, red if on.
- R Right indicator, green if on.
- Author
- Robert Heller <heller@deepsoft.com>