I want that, when I choose a checkbox the lineedit change the text, a different text per checkbox
I have something like that:
self.connect(self.form.cb_banda, QtCore.SIGNAL('stateChange(int)'),
self.type)
self.connect(self.form.cb_tira, QtCore.SIGNAL('stateChange(int)'),
self.type)
def type(self):
if self.form.cb_banda.isChecked():
self.form.le_clv.setText("B0000")
elif self.form.cb_tira.isChecked():
self.form.le_clv.setText("TP0000")
One conexion for checkbox, but doesn't work, I have the checkbox grouped in a GroupBox.