Discussion:
wx.lib activex error in phoenix
S.V.
2014-05-22 22:21:10 UTC
Permalink
Hi,
Just installed this wx phoenix package from one of the latest builds using
the provided .whl file.
from wx.lib import activex, activexwrapper
# Generating comtypes (3 more lines here - I removed them)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files\Python34\lib\site-packages\wx\lib\activex.py",
line 60, in <module>
class ActiveXCtrl(wx.PyAxBaseWindow):
AttributeError: 'module' object has no attribute 'PyAxBaseWindow'

I am trying to dispatch an activex control that requires a full container.
I am on Win64, Python 3.4 (64bit)

I can't find any references to "PyAxBaseWindow" anywhere in phoenix code
base, if you guys have any tips on how to successfully import activex, I
would appreciate it.
The import of "activexwrapper" by itself succeeds, but I'm not sure what to
do with it. Judging by documentation, I need "activex".

If anyone has an example code of how to properly dispatch an activex
control, it would be awesome. I only know the "progid" and "clsid".

Thanks!
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Robin Dunn
2014-05-23 00:56:59 UTC
Permalink
Post by S.V.
Hi,
Just installed this wx phoenix package from one of the latest builds
using the provided .whl file.
from wx.lib import activex, activexwrapper
# Generating comtypes (3 more lines here - I removed them)
File "<stdin>", line 1, in <module>
File "C:\Program Files\Python34\lib\site-packages\wx\lib\activex.py",
line 60, in <module>
AttributeError: 'module' object has no attribute 'PyAxBaseWindow'
None of the activex classes have been wrapped for Phoenix yet.
Post by S.V.
I am trying to dispatch an activex control that requires a full container.
I am on Win64, Python 3.4 (64bit)
I can't find any references to "PyAxBaseWindow" anywhere in phoenix code
base, if you guys have any tips on how to successfully import activex, I
would appreciate it.
The import of "activexwrapper" by itself succeeds, but I'm not sure what
to do with it. Judging by documentation, I need "activex".
The activexwrapper module was the original attempt at ActiveX
integration. It was an all-python solution that was built upon the
PyWin32 extensions. It wan't a very good integration and ended up being
fairly hacky. The wx.activex module was a wrapped C++ wx integration,
and it was a bit better, but still limited. The wx.lib.activex module
is built upon comtypes and also a small C++ wx class, and is more
complete. But like I said, nothing has been done yet in Phoenix for any
of them.
Post by S.V.
If anyone has an example code of how to properly dispatch an activex
control, it would be awesome. I only know the "progid" and "clsid".
If you can use Python 2.7 with your project then you can use Classic
wxPython with ActiveX. Take a look at the wx.lib.iewin and .pdfwin
modules for examples.
--
Robin Dunn
Software Craftsman
http://wxPython.org
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
S.V.
2014-05-25 22:21:37 UTC
Permalink
Thanks very much, not what i wanted to hear.
Are there any other libraries that can do activex dispatch with full
containers? I would like to stay away from python 2.7 for now.
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...