Thomas Heller <[EMAIL PROTECTED]> writes:
> Ah, if XDataType must be an array of short (integers), then this call should
> work:
> 
>   line.SetXData(array.array("h", [1001, 1070]), ['Test_Application', 600])
>

YES!! That worked! And here is the syntax for setting other types of xdata in
case anyone is interested:

line.SetXData(array.array("h", [1001, 1040]), ['Test_Application2', 132.65])
line.SetXData(array.array("h", [1001, 1000]), ['Test_Application3', 
              'Test XData'])
line.SetXData(array.array("h", [1001, 1010]), ['Test_Application4',
array.array('d', [2.0,0,0])])

Thomas, thanks a lot for the solution and detailed explanation!






-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to