Re: [python-win32] Python-win32 Digest, Vol 33, Issue 7

2005-12-07 Thread Mark Hammond
CreateGuid() will create a new GUID each time it is registered. That will end up creating "turds" in your registry. Generate the GUID once and hard-code it in, as the samples do. Your main problem is that you forgot the "self" param in the method. Cheers, Mark -Original Message- From:

Re: [python-win32] Python-win32 Digest, Vol 33, Issue 7

2005-12-07 Thread Michel Claveau
Hi! Your function pyCOMSplit is a method of the class PythonCOMServer. Please, add'self', like this : def pyCOMSplit(self, StringFromVB): It's all Michel Claveau ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mail

Re: [python-win32] Python-win32 Digest, Vol 33, Issue 7

2005-12-07 Thread Tony C
Ok, I'm about 90% there nowI've used the Simple.py from page 213, because there is less involved.when I run it- I see the registration messages. All is good so far.I made one tiny change, related to the call to CreateGuid() import pythoncomclass PythonCOMServer:   _public_methods_ = ['pyCOMSplit'] 

[python-win32] How to get win32com events .. in my main class?

2005-12-07 Thread Laurent Dufréchou
Thank you a lot ! That just work as you said :) coool Roger Upole wrote: >The class instance that's passed to your dispatch class >methods is actually the original COM object, so you >ought to be able to set an attribute on it to communicate >that the event was called. In other words, in your O