[PyQt] Simple connect does not work
Jan Ekholm
jan.ekholm at smultron.net
Fri Apr 24 08:25:43 BST 2009
On Friday 24 April 2009, Mads Ipsen wrote:
> OK, I need to use a signature (see below). Sorry for bothering you!
>
> class SpinBox(QtGui.QSpinBox):
> def __init__(self, parent=None):
> QtGui.QSpinBox.__init__(self, parent)
>
> @QtCore.pyqtSignature("int")
> def foo(self, i):
> print i
Or perhaps:
QtCore.QObject.connect(spin, QtCore.SIGNAL('valueChanged(int)'), spin.foo)
--
Jan Ekholm
jan.ekholm at smultron.net
More information about the PyQt
mailing list