Am Donnerstag, 10. Mai 2012, 22:41:06 schrieb Enes Albay: > class C(QtGui.QPushButton): > > def __init__(self, parent, letter): > self.clicked.connect(self.handleLetter) > > def handleLetter(self): > .... > > > I want to do that: > > lineEdit.setText("bla bla") -------> this is in class A
class B(QtGui.QWidget): def setupUI(self): self.c = C() self.c.clicked.connect(self.c.handleLetter) but I would probably move handleLetter to class B -- Wolfgang _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt