Re: [python-win32] How to return dict from Python COM

2006-07-24 Thread Rodrigo Strauss
To use a Scripting.Dictionary, here goes an example code: >>> from win32com.client import Dispatch >>> d = Dispatch('Scripting.Dictionary') >>> d.Add('key1', 'Value1') >>> d.Add('key2', 2) >>> d.Add(3, 'V

Re: [python-win32] How to return dict from Python COM

2006-07-22 Thread Rodrigo Strauss
The Python dict object is not a compatible COM object, you need to use a COM compatible dictionary. You can develop one or use the Scripting.Dictionary: http://windowssdk.msdn.microsoft.com/en-us/library/x4k5wbx4.aspx Rodrigo Strauss On 7/22/06, hari haran <[EMAIL PROTECTED]> wrote: >

[python-win32] Events in the same object

2006-07-19 Thread Rodrigo Strauss
vents_class, user_event_class), {"__setattr__" : _event_setattr_}) TypeError: instance() takes at most 2 arguments (3 given) Looking at win32com code, it says it's ok to create a circular reference between sink and object, as long as I brea

Re: [python-win32] Trouble Automating Alibre CAD package

2006-07-06 Thread Rodrigo Strauss
e, but AFAIK VB doesn't need the IDispatch, as far as the component provide a type library and oleautomation types. Mark: can dispatch-less objects be used from win32com? Rodrigo Strauss On 7/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to use pyw