|
CompoundPye
0.93
Modelling and Simulation Framework for Neural Networks of Arthropod Compound Eyes
|
A line representing a sensor in the editor window (EditorScrollArea), containing a button showing the sensor's label and a remove-button. More...
Inherits QWidget.
Public Member Functions | |
| def | __init__ |
| Initializes a 'SensorLine'-widget. More... | |
| def | init_UI |
| Set up all the widgets (labels, buttons, etc.) displayed on this SensorLine. More... | |
| def | edit_name |
| Read the name of the sensor from the values-dictionary and set the label of its button accordingly. More... | |
| def | do_popup |
| Pop up a 'SensorPopup'-widget to edit this sensor's values. More... | |
| def | remove |
| Remove this SensorLine from the parent EditorScrollArea. More... | |
A line representing a sensor in the editor window (EditorScrollArea), containing a button showing the sensor's label and a remove-button.
| def CompoundPye.src.GUI.sensor_editor.SensorLine.__init__ | ( | self, | |
| parent_ScrollArea, | |||
| index, | |||
initial_values = None |
|||
| ) |
Initializes a 'SensorLine'-widget.
| parent_ScrollArea | Requires the parent EditorScrollArea (or rather a pointer to it) as input to access its variables (lists of all sensors and their values, etc.). |
| index | Index of this'SensorLine'-widget in the parent EditorScrollArea's layout. |
| initial_values | Can be initialized with a dictionary of sensor-values. |
| def CompoundPye.src.GUI.sensor_editor.SensorLine.do_popup | ( | self | ) |
Pop up a 'SensorPopup'-widget to edit this sensor's values.
| def CompoundPye.src.GUI.sensor_editor.SensorLine.edit_name | ( | self | ) |
Read the name of the sensor from the values-dictionary and set the label of its button accordingly.
| def CompoundPye.src.GUI.sensor_editor.SensorLine.init_UI | ( | self | ) |
Set up all the widgets (labels, buttons, etc.) displayed on this SensorLine.
| def CompoundPye.src.GUI.sensor_editor.SensorLine.remove | ( | self | ) |
Remove this SensorLine from the parent EditorScrollArea.