GUI Widgets Core

Provides a collection of utility functions and the BaseBox class definition, which are core to the functioning of all GUI widgets.

class prism._gui.widgets.core.BaseBox[source]

Defines the BaseBox base class.

This class is used by many custom QWidget classes as their base. It defines the modified signal, which is automatically connected to any widget that changes its state.

childEvent(event)[source]

Special childEvent() event that automatically connects the default modified signal of any widget that becomes a child of this widget.

connect_box(box)[source]

Connect the default modified signal of the provided box to this widget’s modified signal.

get_box_value()[source]

Obtain the value of this widget and return it.

set_box_value(value)[source]

Set the value of this widget to value.

prism._gui.widgets.core.get_box_value(box)[source]

Retrieves the value of the provided widget box and returns it.

prism._gui.widgets.core.get_modified_box_signal(box)[source]

Retrieves the default modified signal of the provided widget box and returns it.

prism._gui.widgets.core.set_box_value(box, value)[source]

Sets the value of the provided widget box to value.