Re: [python-win32] Simple Com Event Handling for Multiple ComObjects

2006-06-26 Thread Mark Hammond
I'm afraid you probably need to pull win32com.client.WithEvents apart and manually setup your own event handler class. Different events do need different functions (although it should be possible to add the same event handler to 2 different event sources. Cheers, Mark > -Original Message---

Re: [python-win32] com servers and py2exe

2006-06-26 Thread Floris van Nee
Ok, what you told me works for this simple program:   class HelloWorld:    _reg_clsid_ = "{4E5807E3-C445-4A3C-A4BC-FD81697B661A}"    _reg_progid_ = "Python.TestServer"    _public_methods_ = ['Hello']    def __init__(self):    pass     def Hello(self, who):    return "Hello" + who   regsvr32

Re: [python-win32] python COM-Server and VBScript (Tim Roberts)

2006-06-26 Thread Frank Günther
... > > > >I found a strange behaviour when I use a python-COM-Server together with > VB. > > > > > > Not VB, but rather VBS. They are two rather different languages. > ... Hi Tim, Thanks for your answer. Actually the same problem arises if you use VB or VBA. So the difference between VB and