Thomas,

I found an example that came with pywin32. The sample file is
C:\Python25\Lib\site-packages\win32com\test\testMSOfficeEvents.py

I modified one of the event handler to see the argument order:

def OnSheetBeforeDoubleClick(self, Sh, Target, Cancel):
    print Sh, Target, Cancel

and this is the output:

<win32com.gen_py.Microsoft Excel 11.0 Object Library._Worksheet instance at
0x24606120> None False #double-clicked on empty cell
<win32com.gen_py.Microsoft Excel 11.0 Object Library._Worksheet instance at
0x24606240> 2.0 False #double-clicked on cell with "2.0"
<win32com.gen_py.Microsoft Excel 11.0 Object Library._Worksheet instance at
0x24607960> 1.0 False #double-clicked on cell with "1.0"

And this is from the VB reference for this event:
Private Sub object_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As
Range, ByVal Cancel As Boolean)

So it seems with pywin32, the argument order is not reversed.


-------------------------------------------------------------------------
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