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

A widget that allows the user to choose a target of a connection via an combo-box and set the connection's weight. More...

Inherits QWidget.

Public Member Functions

def __init__
 Initializes a 'ConnectionEdit'-object. More...
 
def init_UI
 Sets up all widgets (line-edit, combo-box, button) shown on this 'ConnectionEdit'-widget. More...
 
def edit_target
 Read the combo-box specifying the target of this connection and change values in the lists accordingly. More...
 
def edit_weight
 Read the weight-value from the 'LineEdit'-Widget and change the value in the connection-lists accordingly. More...
 
def do_remove
 Call the parent ConnectionWidget's remove-function (ConnectionWidget.remove) with this ConnectionEdit's index as parameter. More...
 

Detailed Description

A widget that allows the user to choose a target of a connection via an combo-box and set the connection's weight.

Constructor & Destructor Documentation

def CompoundPye.src.GUI.circuit_editor.ConnectionEdit.__init__ (   self,
  parent_ConnectionWidget,
  default_target,
  default_weight 
)

Initializes a 'ConnectionEdit'-object.

Parameters
parent_ConnectionWidgetRequires the parent ConnectionWidget object on which this widget is shown, to access its members.
default_targetOne must provide the name of the target or an empty string if this ConnectionEdit represents a new connection.
default_weightOne must provide the weight of the connection.

Member Function Documentation

def CompoundPye.src.GUI.circuit_editor.ConnectionEdit.do_remove (   self)

Call the parent ConnectionWidget's remove-function (ConnectionWidget.remove) with this ConnectionEdit's index as parameter.

def CompoundPye.src.GUI.circuit_editor.ConnectionEdit.edit_target (   self,
  s 
)

Read the combo-box specifying the target of this connection and change values in the lists accordingly.

Parameters
sString of the selected combo-box item.
def CompoundPye.src.GUI.circuit_editor.ConnectionEdit.edit_weight (   self)

Read the weight-value from the 'LineEdit'-Widget and change the value in the connection-lists accordingly.

def CompoundPye.src.GUI.circuit_editor.ConnectionEdit.init_UI (   self,
  default_target,
  default_weight 
)

Sets up all widgets (line-edit, combo-box, button) shown on this 'ConnectionEdit'-widget.


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