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):
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,
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
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
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
[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
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: