On Thursday 08 April 2010 15:03:29 Lauro Moura wrote:
> On Thu, Apr 8, 2010 at 2:34 PM, Stuart McNicholas
> 
> <[email protected]> wrote:
> > Dear PySide,
> > The following small program produces:
> > Invalid callback object.
> > when the PySide line is uncommented.
> > but
> > slot partial ..
> > when the PyQt4 line is uncommented, as expected.
> > from PySide import QtCore
> > #from PyQt4 import QtCore
> > import functools
> > def aslot(args=None):
> >   print "slot",args
> > app = QtCore.QCoreApplication([])
> > o = QtCore.QObject()
> > o.connect(o,QtCore.SIGNAL("ASignal"),functools.partial(aslot,"partial
> > ..")) o.emit(QtCore.SIGNAL("ASignal"))
> > Is this just a missing feature/bug or by design.
> > Best Wishes,
> > Stuart McNicholas
> 
> Yep, I have just confirmed this as a bug: " Can't connect generic
> callable objects as a slot"
> 
> The same happens to any object with __call__ methods.
> 
> http://bugs.openbossa.org/show_bug.cgi?id=210

Bug fixed, thanks for report it.

-- 
Hugo Parente Lima
INdT - Instituto Nokia de Tecnologia

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to