roger upole schkeramsncom alex denham wrote ive look example cant quite pick whats done differently pythoncomwrapobject called within class called class something arguments passed wrap object thanks help alex class explicitely inherit policy class win32comserverpolicydesignatedwrappolicy __init__ method calls _wrap_ also instance class passed wrapobject rather class snipped working example class idroptargetwin32comserverpolicydesignatedwrappolicy _com_interfaces_pythoncomiid_idroptarget _public_methods_dragenterdragoverdragleavedrop def __init__self self_wrap_self def dragenterself dataobject keystate pt effect print dragenter print dataobject keystate pt effect def dragoverself keystate pt effect print dragover print keystate pt effect def dragleaveself print dragleave def dropself dataobject keystate pt effect print drop print dataobject keystate pt effect dtidroptarget idtpythoncomwrapobjectdt pythoncomiid_idroptarget pythoncomiid_idroptarget pythoncomregisterdragdrophwnd idt roger _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 thu 07 aug 2008 211144 0400 pythonwin32 creating python com objects