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

A tab (Widget) in which the user can specify several system-parameters. More...

Inherits QWidget.

Public Member Functions

def __init__
 Initializes a TabSystem-object. More...
 
def initUI
 Initializes all Widgets (labels,buttons,etc.) that are shown in this tab. More...
 
def read_combo
 Set the type for the initial relaxation calculations as selected by the user in the provided combo-box. More...
 
def set_value
 Change a value in the parent GUI's values-dictionary. More...
 

Detailed Description

A tab (Widget) in which the user can specify several system-parameters.

Constructor & Destructor Documentation

def CompoundPye.src.GUI.ui_tabs.TabSystem.__init__ (   self,
  parent 
)

Initializes a TabSystem-object.

Parameters
parentRequires the parent MDM_GUI-object as parameter to access its dictionary in which all parameters are stored.

Member Function Documentation

def CompoundPye.src.GUI.ui_tabs.TabSystem.initUI (   self)

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

btn=QtGui.QPushButton('Buttonbrot')
btn.setToolTip('clixclixclixme!')
btn.resize(btn.sizeHint())
btn.clicked.connect(self.count_up)

self.lbl=QtGui.QLabel(str(self.count))


hbox=QtGui.QHBoxLayout()
hbox.addWidget(btn)
hbox.addWidget(self.lbl)

frame=QtGui.QFrame()
frame.setLayout(hbox)
frame.setStyleSheet("background-color: rgb(0,0,0); margin:5px; border:1px solid rgb(255, 255, 255); ")
def CompoundPye.src.GUI.ui_tabs.TabSystem.read_combo (   self,
  s 
)

Set the type for the initial relaxation calculations as selected by the user in the provided combo-box.

Parameters
sString that is shown as text on the combo-box-widget.
def CompoundPye.src.GUI.ui_tabs.TabSystem.set_value (   self,
  value_key,
  value 
)

Change a value in the parent GUI's values-dictionary.

Parameters
value_keyKey in the value-dictionary that receives a new value.
valueNew value for specified key.

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