I was trying to use a GUI-only ActiveX Control in Python (using an OCX File) and I managed to get it working using PyQt5
as an intermediary.
See the below minimal example code using the ActiveX Control DATARAOCX.GetDataCtrl.1
.
I found this way more elegant than using comtypes
, wxpython
or similar, especially since comtypes
kept throwing a "Catastropic Error" whenever I try to access the ActiveX Control.
Hope this helps someone also stuck in this problem.