|
CompoundPye
0.93
Modelling and Simulation Framework for Neural Networks of Arthropod Compound Eyes
|
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... | |
A tab (Widget) in which the user can specify several system-parameters.
| def CompoundPye.src.GUI.ui_tabs.TabSystem.__init__ | ( | self, | |
| parent | |||
| ) |
Initializes a TabSystem-object.
| parent | Requires the parent MDM_GUI-object as parameter to access its dictionary in which all parameters are stored. |
| 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.
| s | String 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.
| value_key | Key in the value-dictionary that receives a new value. |
| value | New value for specified key. |