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

A CompWidget is a graphical representation (just a line of buttons really) of a neuron/component in an 'Editor'-object. More...

Inherits QWidget.

Public Member Functions

def __init__
 Initializes an 'CompWidget'-object. More...
 
def init_UI
 Initializes all Widgets (labels,buttons,etc.) that are shown in this tab. More...
 
def create_popup_neuron
 Pops up a 'PopupNeuron'-widget, in which the user can edit the neuron's parameters. More...
 
def create_popup_connections
 Pops up a 'PopupConnections'-widget, in which the user can edit/add/remove connections. More...
 
def remove
 Removes this 'CompWidget'-object from its parent 'Editor'-widget (and all its entries in the 'Editor'-widgets lists and dictionaries). More...
 
def from_file_dict
 
def edited
 After editing in a 'PopupNeuron'-widget is finished, this neuron's name is read from the values-dictionary and its button's label is set appropriately. More...
 

Detailed Description

A CompWidget is a graphical representation (just a line of buttons really) of a neuron/component in an 'Editor'-object.

The user can click its buttons to edit/remove the neuron.

Constructor & Destructor Documentation

def CompoundPye.src.GUI.circuit_editor.CompWidget.__init__ (   self,
  parent_UI,
  initial = False 
)

Initializes an 'CompWidget'-object.

Parameters
parent_UIRequires the parent 'Editor'-object as parameter to access its list and dictionries to store this neuron's/component's parameters.
initialThe 'CompWidget'-object can be initialized with a dictionary of parameters.

Member Function Documentation

def CompoundPye.src.GUI.circuit_editor.CompWidget.create_popup_connections (   self)

Pops up a 'PopupConnections'-widget, in which the user can edit/add/remove connections.

def CompoundPye.src.GUI.circuit_editor.CompWidget.create_popup_neuron (   self)

Pops up a 'PopupNeuron'-widget, in which the user can edit the neuron's parameters.

def CompoundPye.src.GUI.circuit_editor.CompWidget.edited (   self)

After editing in a 'PopupNeuron'-widget is finished, this neuron's name is read from the values-dictionary and its button's label is set appropriately.

def CompoundPye.src.GUI.circuit_editor.CompWidget.from_file_dict (   self,
  name,
  comp_dict 
)
Todo:
SEEMS LIKE THIS IS NOT USED ANYWHERE?
def CompoundPye.src.GUI.circuit_editor.CompWidget.init_UI (   self)

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

def CompoundPye.src.GUI.circuit_editor.CompWidget.remove (   self)

Removes this 'CompWidget'-object from its parent 'Editor'-widget (and all its entries in the 'Editor'-widgets lists and dictionaries).


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