Hi Christopher,

I created this small test[1] and this works fine. I think this problem can
be something in Ui loader module, could you create a bug report with a
complete example.

Thanks


[1]
http://qt.gitorious.org/~renatofilho/pyside/renatofilhos-pyside-shiboken/blobs/master/tests/QtGui/qtextedit_signal_test.py

On Wed, Jun 16, 2010 at 10:50 AM, Christopher Tarento <
[email protected]> wrote:

> 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
>
>


-- 
Renato Araujo Oliveira Filho
Instituto Nokia de Tecnologia - INdT
Mobile: +55 (81) 8704-2144
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to