Thomas Heller schrieb:
> Kelie schrieb:
>> Hello,
>> 
>> I noticed the argument order in an event handler in comtypes is reversed when
>> compared with VB reference. For example:
>> 
>> Excel's Application object has a WindowResize event and according to the VB
>> reference, the syntax is:
>> Private Sub object_WindowResize(ByVal Wb As Excel.Workbook, ByVal Wn As
>> Excel.Window)
>> 
>> But in comtypes, the syntax would be:
>> def onWindowResize(self, this, Wn, Wb)
>> 
>> The order of Wn and Wb is reversed. Is this intended? 
> 
> No, it is not intended.  However, there is no quick fix for this bug,
> since the event handlers on other interfaces (InternetExplorer for example)
> are called with the correct argument order.  I suspect there is an obscure 
> flag
> on the interface or something like that; I still have to find out.
> 

The only difference to other event interfaces that I see now is that the 
arguments
are passed as named arguments in Excel.


Can you try to find out whether pywin32 has the same problem, this could help
to find a solution?

Thomas


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to