self.connect(control, SIGNAL("currentIndexChanged(int)"), lambda: self.stateChanged(id))
elif type(control) == QDoubleSpinBox:
self.connect(control, SIGNAL("valueChanged(double)"), lambda: self.stateChanged(id))
self.connect(control, SIGNAL("currentIndexChanged(int)"), lambda: self.stateChanged(id))
elif type(control) == QDoubleSpinBox:
self.connect(control, SIGNAL("valueChanged(double)"), lambda: self.stateChanged(id))