Re: [python-win32] Creating python com objects

2008-04-24 Thread Alex Denham
class PyIDropTarget: _public_methods_ = ['DragEnter', 'DragOver', 'DragLeave', 'Drop'] _reg_progid_ = Python.PyIDropTarget _reg_clsid_ = '{0122---C000-0046}' def DragEnter(self, args=None): print 'DragEnter: ', args def DragOver(self, args=None):

[python-win32] Creating python com objects

2008-04-24 Thread Roger Upole
Alex Denham wrote: class PyIDropTarget: _public_methods_ = ['DragEnter', 'DragOver', 'DragLeave', 'Drop'] _reg_progid_ = Python.PyIDropTarget _reg_clsid_ = '{0122---C000-0046}' def DragEnter(self, args=None): print 'DragEnter: ', args def DragOver(self,

Re: [python-win32] Creating python com objects

2008-04-24 Thread Alex Denham
ah thanks very much, initially i had a unique GUID however i got giddy and excited when i found 'PyIDropTarget' in one of the modules, unfortunatly it was just an id (i thought it was an object) I'm working my way through python programming on win32, do you know of any other material i can work

Re: [python-win32] Creating python com objects

2008-04-24 Thread Tim Golden
Alex Denham wrote: class PyIDropTarget: _public_methods_ = ['DragEnter', 'DragOver', 'DragLeave', 'Drop'] _reg_progid_ = Python.PyIDropTarget _reg_clsid_ = '{0122---C000-0046}' def DragEnter(self, args=None): print 'DragEnter: ', args def

Re: [python-win32] Apache mod_python win32com

2008-04-24 Thread Alex Denham
Hi, first of all, just import pythoncom directly code import pythoncom /code As far as where to put pythoncom.CoInitialize() I'm not certain but i think at the top (or start) of your whole application.. if it's threaded then call it for each thread (at the start) Initializes the COM library on

Re: [python-win32] Apache mod_python win32com

2008-04-24 Thread Robert Brewer
[EMAIL PROTECTED] wrote: Thank you Rober Alex for the answers :-) But I must admit that I'm still bit uncertain about that whole issue. As I understood apache it is creating a thread for every request anyway, or not? (and yes, on windows the MPM winnt is used) As I understand it, Apache

Re: [python-win32] Creating python com objects

2008-04-24 Thread Tim Golden
Alex Denham wrote: Thanks Tim, the program actually reacts when something is dragged over (much better than before). However i'm receiving an error everytime. pythoncom error: Unexpected exception in gateway method 'DragEnter' type 'exceptions.AttributeError': DragEnter pythoncom error: