The System Panel API is a set of Python functions and classes that is used to create system panels. Further documentation can be found in the Model Builder User's Guide, chapter Creating a System Panel.
The API section covers the generic API for the system panel infrastructure and a couple of helper functions; the Widget Types section describes the specifics of each type of widget that can be included in a panel.
systempanel.widgets
systempanel.widgets.BLUE systempanel.widgets.GREEN systempanel.widgets.PURPLE systempanel.widgets.RED systempanel.widgets.WHITE systempanel.widgets.YELLOW
BitfieldImageOutput(obj_name, contents)
The contents parameter is a list of tuples (mask, x, y,
[off_filename, on_filename])
, where the integer mask
is a
power of two, x
and y
are integer offsets, and
off_filename
and on_filename
are file names given on the
same form as in the Image class. The off_filename
image is shown at the given offset whenever the bit indicated by
mask
is 0; on_filename
is shown otherwise.
BitmapButton(obj_name, off_bitmap, on_bitmap)
BitmapLed(obj_name, off_bitmap, on_bitmap)
BitmapToggleButton(obj_name, off_bitmap, on_bitmap)
Button(obj_name, label)
signal
interface, and can be raised or lowered. Raising and
lowering the signal is frontend specific.Canvas(contents)
Column(contents)
Empty()
Grid(contents, columns)
Image(filename)
Label(label)
LabeledBox(label, container)
Led(obj_name, color=None)
signal
interface. The parameter color specifies the color of
the LED, all supported colors are described in Standard Widgets
Colors. The look-and-feel of the LED is frontend specific.MultiImageOutput(obj_name, images)
uint64_state
interface
is used as a 0-based index in the image list.NumberInput(obj_name)
uint64_state
interface.NumberOutput(obj_name)
uint64_state
interface.Row(contents)
ToggleButton(obj_name, label)
signal
interface. When button is
pressed, signal is raised. When button is released, signal is lowered. The
button must have a label indicating its purpose.