CompoundPye  0.93
Modelling and Simulation Framework for Neural Networks of Arthropod Compound Eyes
 All Classes Namespaces Functions Variables Pages
CompoundPye.src.GUI.sensor_editor.EditorScrollArea Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

def CompoundPye.src.GUI.sensor_editor.EditorScrollArea.__init__ (   self,
  parent_EditorWidget,
  initial_file = None 
)

Initializes an EditorScrollArea.

Parameters
parent_EditorWidgetRequires the parent EditorWidget (or rather a pointer to it) which serves as frame for this EditorScrollArea as input, to access its variables.
initial_fileCan be initialized with a path to a sensor-file (text-file).

Member Function Documentation

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.

Parameters
initial_valuesThe 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).

Parameters
fnamePath 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.

Parameters
indexIndex 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.

Parameters
fnamePath 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.


The documentation for this class was generated from the following file: