I get some issue trying to emit a signal to a QTextEdit append function

class LightFire(QtGui.QMainWindow):
self.stringSended = QtCore.Signal(QtCore.QString)

def __init__(self, parent=None):
super(LightFire, self).__init__(parent)

self.ui = Ui_LightFireWindow()
self.ui.setupUi(self)

self.stringSended.connect(self.ui.myTextEdit.append)
self.ui.myPushButton.clicked.connect(self.sendPassed)

@QtCore.Slot()
def sendPassed(self):
self.stringSended.emit("Hello world");


When I click on "myPushButton", I get this :

Error calling slot "append"
TypeError: append() takes exactly one argument (0 given


Can you tell what I'm doing wrong on this piece of code ?
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to