Cannot pass arguments to ActiveX COM object using PyQt4
I'm trying to write some Python code to talk to the Thorlabs APT ActiveX control. I'm basing my code on the code found on this page , but trying to use PyQt4 ActiveX container instead of the wxPython ActiveX container. It works for a very simple ActiveX methods, however, I get an error when trying to call a method that takes arguments. This code works and shows the about box for Thorlabs APT: import sys from ctypes import * from PyQt4 import QtGui from PyQt4 import QAxContainer class APTSystem(QAxContainer.QAxWidget): def __init__(self, parent): self.parent = parent super(APTSystem, self)._