[PyQt] Connect PyQt to ActiveX events
Sam Myers
morefigs at gmail.com
Thu Feb 5 01:56:28 GMT 2015
With ActiveX it's quite different. MoveComplete is not a method of the
AxWidget class, so that code won't work. The real question is how do I
reference the MoveComplete event at all?
On 3 February 2015 at 16:37, Florian Bruhin <me at the-compiler.org> wrote:
> * Sam Myers <morefigs at gmail.com> [2015-02-03 14:54:57 +1100]:
> > QObject::connect(object, SIGNAL(MoveComplete(int)), receiver,
> > SLOT(someSlot(int)));
> >
> > But I can't work out the equivalent Python code. None of these work:
> >
> > self.connect(self, QtCore.SIGNAL('MoveComplete(int)'), self,
> > QtCore.SLOT(self.myfunc))
> > self.connect(self, QtCore.SIGNAL('MoveComplete(int)'), self.myfunc)
> > self.connect(self.MoveComplete(), QtCore.SIGNAL('MoveComplete(int)'),
> self,
> > QtCore.SLOT(self.myfunc))
>
> I don't know anything about ActiveX - but the way this would be done
> with a normal signal with the new signal-slot syntax would be:
>
> self.MoveComplete.connect(self.myfunc)
>
>
> http://pyqt.sourceforge.net/Docs/PyQt5/signals_slots.html#connecting-disconnecting-and-emitting-signals
>
> Florian
>
> --
> http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
> GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
> I love long mails! | http://email.is-not-s.ms/
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150205/364acdfa/attachment.html>
More information about the PyQt
mailing list