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.SensorLine Class Reference

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

Detailed Description

A line representing a sensor in the editor window (EditorScrollArea), containing a button showing the sensor's label and a remove-button.

Constructor & Destructor Documentation

def CompoundPye.src.GUI.sensor_editor.SensorLine.__init__ (   self,
  parent_ScrollArea,
  index,
  initial_values = None 
)

Initializes a 'SensorLine'-widget.

Parameters
parent_ScrollAreaRequires the parent EditorScrollArea (or rather a pointer to it) as input to access its variables (lists of all sensors and their values, etc.).
indexIndex of this'SensorLine'-widget in the parent EditorScrollArea's layout.
initial_valuesCan be initialized with a dictionary of sensor-values.

Member Function Documentation

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.


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