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

An ditor-widget that serves as content of the tabs of 'EditorTabs'-objects. More...

Inherits QFrame.

Public Member Functions

def __init__
 Initializes an 'Editor'-object. More...
 
def init_UI
 Initializes all Widgets (labels,buttons,etc.) that are shown in this tab. More...
 
def add_neuron
 Adds a neuron to the list of neurons, either with or without initial parameters. More...
 
def removed
 Tells the 'Editor'-object, that the 'remove'-button of a neuron (CompWidget) shown in the editor has been clicked and that the Editor has to remove it from its lists. More...
 
def change_name
 Tells the 'Editor'-object that a neuron's (CompWidget's) name has been changed; scans through the lists of connections to change the old name to the new name in those lists. More...
 

Detailed Description

An ditor-widget that serves as content of the tabs of 'EditorTabs'-objects.

It allows the user to add/remove/edit neurons in a group specified by the tab.

Constructor & Destructor Documentation

def CompoundPye.src.GUI.circuit_editor.Editor.__init__ (   self,
  parent_EditorTabs,
  mode 
)

Initializes an 'Editor'-object.

Parameters
parent_EditorTabsRequires the parent 'EditorTabs'-object as parameter to access its list and dictionries that store components/neurons and parameters.
modeThe mode can be 'column' or 'between', it tells the Editor which list of neurons of the parent 'EditorTabs'-object it should read from/write to.

Member Function Documentation

def CompoundPye.src.GUI.circuit_editor.Editor.add_neuron (   self,
  initial = False 
)

Adds a neuron to the list of neurons, either with or without initial parameters.

Parameters
initialCan be initialized with a dictionary of parameters.
def CompoundPye.src.GUI.circuit_editor.Editor.change_name (   self,
  old,
  new 
)

Tells the 'Editor'-object that a neuron's (CompWidget's) name has been changed; scans through the lists of connections to change the old name to the new name in those lists.

Parameters
oldOld name of the neuron (CompWidget).
newNew name of the neuron (CompWidget).
def CompoundPye.src.GUI.circuit_editor.Editor.init_UI (   self)

Initializes all Widgets (labels,buttons,etc.) that are shown in this tab.

def CompoundPye.src.GUI.circuit_editor.Editor.removed (   self,
  j 
)

Tells the 'Editor'-object, that the 'remove'-button of a neuron (CompWidget) shown in the editor has been clicked and that the Editor has to remove it from its lists.

Parameters
jIndex of the neuron (CompWidget) to be removed.

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