mapper->addMapping(typeComboBox, 2, "currentIndex");
mapper->addMapping(typeComboBox, 2, "currentText");
if isinstance(pyqt_widget, QtGui.QComboBox):
self.data.mapper.addMapping(pyqt_widget, attrs.index(attr), 'currentText')
else:
self.data.mapper.addMapping(pyqt_widget, attrs.index(attr))