By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,814 Members | 1,136 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,814 IT Pros & Developers. It's quick & easy.

python and activeX control

P: n/a
I have an application that I want to automatised trough a COM layer or

I can access to all the method of the COM objects with python and
win32com when this application is running....

If the application is not running, I can not access to all the method
of the object.

Usually to overcome this problem , One can use an activeX control
which is just a bitmap in a form in VB(6)... and then the code is :

Dim module As Automation.IModule

Dim myBlock as Automation.IBlock2

Dim myDatabase As Automation.IDatabase

Set module = ActiveXModuleLoader1.module

myDatabase = module.Database("C:/Data/myproj")

I can have active X ModuleLoader._DActiveXModuleLoader running under
python without a GUI but when you call the .module method of this
object it crashes.... :

Traceback (most recent call last):

File "<interactive input>", line 1, in <module>

File "D:\soft\python25\lib\site-packages\win32com\client
\", line 458, in __getattr__

return self._ApplyTypes_(*args)

File "D:\soft\python25\lib\site-packages\win32com\client
\", line 451, in _ApplyTypes_

dispid, 0, wFlags, retType, argTypes, *args),

com_error: (-2147418113, 'Catastrophic failure', None, None)
my questions :

- Do you have ideas to do translate the vb code into python ?
-In a module genrated by makepy : what can I call as object : coclass
or Dipatch base class ?\
-Do you know how to integrate an activeX control in a python GUI
( wxpython ) ? WOuld it solve my problems ?
- Why I can not access all the method of an object when the
application is not running ? Is there a way to do it ?

- can I create a Ghost of such an application to be able to have all
the method on all the objects ?

- Can I create a vb code which contains all the code for the com
objects and then try to use python with scipy to do some mathematical
operations on the data?

I would like to do every thing in python but I am a newbie ....

Thanks in advance !

Apr 28 '07 #1
Share this Question
Share on Google+
2 Replies

P: n/a
Bonsoir !

Flagrant délit de manque de confiance dans les newsgroups français en vue...

Ha ! Ha ! Ha ! Bonne chance avec les US...

Apr 28 '07 #2

P: n/a
On 28 avr, 23:09, "Méta-MCI" <enleverlesX.X...@XmclaveauX.comwrote:
Bonsoir !

Flagrant délit de manque de confiance dans les newsgroups français envue...

Ha ! Ha ! Ha ! Bonne chance avec les US...
c'est vrai j'avoue ;)

Apr 28 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.