> I am completely new to COM and have trouble getting changes
> in python code be passed to the COM interface. When
> I apply changes to a Python class which is exposed as a COM
> object, these changes somehow don't get registered correctly -
> meaning that I cannot see the changes when accessing the COM
> object from Excel/VBA.

You need to either restart excel, or arrange for your module to be
'reload'ed.  One way would be to add a 'reload' method to your object.  For
example, the .py code might have:

  def reload(self):
    import mymod
    reload(mymod)

And your VB code could then look like:

  ob.reload() ; reload the module using the 'old' object
  set ob = CreateObject("Your.ProgID") ; re-create ob with the new code

and from then on, 'ob' should have any changes you have made.

Mark

_______________________________________________
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to