CompoundPye
0.93
Modelling and Simulation Framework for Neural Networks of Arthropod Compound Eyes
|
This ScrollArea is the actual editor window in which the user can add/remove sensors and click on a sensor's button to edit its properties. More...
Inherits QScrollArea.
Public Member Functions | |
def | __init__ |
Initializes an EditorScrollArea. More... | |
def | init_UI |
Sets up all the widgets (graphical stuff like buttons, labels, etc.) displayed in this EditorScrollArea. More... | |
def | add_sensor |
Adds a sensor ('SensorLine'-widget) to this EditorScrollArea and the sensor's values to this EditorScrollArea.sensor list. More... | |
def | do_add_sensor |
Adds a new ('SensorLine'-widget) to this EditorScrollArea and default sensor values to the list EditorScrollArea.sensor. More... | |
def | do_load |
Load a sensor-file (text-file). More... | |
def | do_remove |
Remove the 'SensorLine'-widget with given index from the EditorScrollArea. More... | |
def | do_save |
Save the sensors currently shown on the EditorScrollArea to a sensor-file. More... | |
This ScrollArea is the actual editor window in which the user can add/remove sensors and click on a sensor's button to edit its properties.
def CompoundPye.src.GUI.sensor_editor.EditorScrollArea.__init__ | ( | self, | |
parent_EditorWidget, | |||
initial_file = None |
|||
) |
Initializes an EditorScrollArea.
parent_EditorWidget | Requires the parent EditorWidget (or rather a pointer to it) which serves as frame for this EditorScrollArea as input, to access its variables. |
initial_file | Can be initialized with a path to a sensor-file (text-file). |
def CompoundPye.src.GUI.sensor_editor.EditorScrollArea.add_sensor | ( | self, | |
initial_values = None |
|||
) |
Adds a sensor ('SensorLine'-widget) to this EditorScrollArea and the sensor's values to this EditorScrollArea.sensor list.
initial_values | The new 'SensorLine'-widget can be initialized with a dictionary of sensor-values. |
def CompoundPye.src.GUI.sensor_editor.EditorScrollArea.do_add_sensor | ( | self | ) |
Adds a new ('SensorLine'-widget) to this EditorScrollArea and default sensor values to the list EditorScrollArea.sensor.
def CompoundPye.src.GUI.sensor_editor.EditorScrollArea.do_load | ( | self, | |
fname | |||
) |
Load a sensor-file (text-file).
fname | Path to file to load. |
def CompoundPye.src.GUI.sensor_editor.EditorScrollArea.do_remove | ( | self, | |
index | |||
) |
Remove the 'SensorLine'-widget with given index from the EditorScrollArea.
index | Index of the 'SensorLine'-widget to be removed. |
def CompoundPye.src.GUI.sensor_editor.EditorScrollArea.do_save | ( | self, | |
fname | |||
) |
Save the sensors currently shown on the EditorScrollArea to a sensor-file.
fname | Path to target file. |
def CompoundPye.src.GUI.sensor_editor.EditorScrollArea.init_UI | ( | self, | |
initial_file | |||
) |
Sets up all the widgets (graphical stuff like buttons, labels, etc.) displayed in this EditorScrollArea.