def __init__(self, component_manager, parent):
     ActivityCriterionWidget.__init__(self, component_manager)
     QtGui.QWidget.__init__(self, parent)        
     self.verticalLayout = QtGui.QVBoxLayout(self)
     self.horizontalLayout = QtGui.QHBoxLayout()
     self.label = QtGui.QLabel("Activate cards with grade <=", self)
     self.horizontalLayout.addWidget(self.label)
     self.threshold = QtGui.QSpinBox(self)
     self.threshold.setMaximum(5)
     self.horizontalLayout.addWidget(self.threshold)
     self.verticalLayout.addLayout(self.horizontalLayout)
     self.parent_saved_sets = parent.saved_sets
     self.connect(self.threshold, QtCore.SIGNAL("valueChanged(int)"),
                  self.criterion_changed)
示例#2
0
 def __init__(self, component_manager, parent):
     ActivityCriterionWidget.__init__(self, component_manager)
     QtGui.QWidget.__init__(self, parent)
     self.setupUi(self)
     self.parent_saved_sets = parent.saved_sets