<div dir="ltr">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?<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 February 2015 at 16:37, Florian Bruhin <span dir="ltr"><<a href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* Sam Myers <<a href="mailto:morefigs@gmail.com">morefigs@gmail.com</a>> [2015-02-03 14:54:57 +1100]:<br>
<span class="">> QObject::connect(object, SIGNAL(MoveComplete(int)), receiver,<br>
> SLOT(someSlot(int)));<br>
><br>
> But I can't work out the equivalent Python code. None of these work:<br>
><br>
> self.connect(self, QtCore.SIGNAL('MoveComplete(int)'), self,<br>
> QtCore.SLOT(self.myfunc))<br>
> self.connect(self, QtCore.SIGNAL('MoveComplete(int)'), self.myfunc)<br>
> self.connect(self.MoveComplete(), QtCore.SIGNAL('MoveComplete(int)'), self,<br>
> QtCore.SLOT(self.myfunc))<br>
<br>
</span>I don't know anything about ActiveX - but the way this would be done<br>
with a normal signal with the new signal-slot syntax would be:<br>
<br>
self.MoveComplete.connect(self.myfunc)<br>
<br>
<a href="http://pyqt.sourceforge.net/Docs/PyQt5/signals_slots.html#connecting-disconnecting-and-emitting-signals" target="_blank">http://pyqt.sourceforge.net/Docs/PyQt5/signals_slots.html#connecting-disconnecting-and-emitting-signals</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Florian<br>
<br>
--<br>
<a href="http://www.the-compiler.org" target="_blank">http://www.the-compiler.org</a> | <a href="mailto:me@the-compiler.org">me@the-compiler.org</a> (Mail/XMPP)<br>
GPG: 916E B0C8 FD55 A072 | <a href="http://the-compiler.org/pubkey.asc" target="_blank">http://the-compiler.org/pubkey.asc</a><br>
I love long mails! | <a href="http://email.is-not-s.ms/" target="_blank">http://email.is-not-s.ms/</a><br>
</font></span><br>_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br></div>