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

A widget that allows the user to choose targets of connections via combo-boxes and set the connections' weights. More...

Inherits QWidget.

Public Member Functions

def __init__
 Initializes a ConnectionWidget. More...
 
def init_UI
 Sets up all the widgets (buttons, labels, line-edits, etc) contained by this ConnectionWidget. More...
 
def create_connect_edit_tangential_to
 Creates a ConnectionEditTangential widget. More...
 
def create_connect_edit
 Creates and adds a new line to the ConnectionWidget's connection editor. More...
 
def remove
 Remove line i in the ConnectionWidget editor window. More...
 
def do_cancel
 Discard all changes made in this ConnectionWidget's editor window. More...
 
def do_done
 Store all changes made in this ConnectionWidget's editor window to the parent Editor's lists. More...
 

Detailed Description

A widget that allows the user to choose targets of connections via combo-boxes and set the connections' weights.

Constructor & Destructor Documentation

def CompoundPye.src.GUI.circuit_editor.ConnectionWidget.__init__ (   self,
  parent_editor,
  parent_PopupConnection,
  neuron_name,
  widget_mode = 'column' 
)

Initializes a ConnectionWidget.

Parameters
parent_editorRequires the parent Editor (or rather a pointer to it) of the 'PopupConnections'-object as input to access its lists of connections.
parent_PopupConnectionRequires the parent PopupConnections (or rather a pointer to it) as input to be able to call its remove-function.
neuron_nameName of the neuron, required to read/write the neuron's connections from/to the lists of connections.
widget_modeString to specify if this neuron is in a column (widget_mode=='column') or between columns (widget_mode=='next_neighbour').

Member Function Documentation

def CompoundPye.src.GUI.circuit_editor.ConnectionWidget.create_connect_edit (   self,
  default_target = '',
  default_weight = 1.0 
)

Creates and adds a new line to the ConnectionWidget's connection editor.

Parameters
default_targetCan be initialized with a target specified by this string.
default_weightCan be initialized with a connection strength specified by this value.
def CompoundPye.src.GUI.circuit_editor.ConnectionWidget.create_connect_edit_tangential_to (   self,
  connection = None 
)

Creates a ConnectionEditTangential widget.

Parameters
connectionTuple defining an initial connection.
def CompoundPye.src.GUI.circuit_editor.ConnectionWidget.do_cancel (   self)

Discard all changes made in this ConnectionWidget's editor window.

def CompoundPye.src.GUI.circuit_editor.ConnectionWidget.do_done (   self)

Store all changes made in this ConnectionWidget's editor window to the parent Editor's lists.

def CompoundPye.src.GUI.circuit_editor.ConnectionWidget.init_UI (   self,
  widget_mode 
)

Sets up all the widgets (buttons, labels, line-edits, etc) contained by this ConnectionWidget.

Parameters
widget_modeString to specify if this ConnectionWidget's neuron is in a column (widget_mode=='column') or between columns (widget_mode=='next_neighbour').
def CompoundPye.src.GUI.circuit_editor.ConnectionWidget.remove (   self,
  i 
)

Remove line i in the ConnectionWidget editor window.

Parameters
iIndex of the line to be removed.

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