Andre Engels <andreengels <at> gmail.com> writes: > > So what does the code of line.SetXData(dataType, dataValue) look like? > >From that code you should be able to discern what argument type is > wanted. >
Thanks Andre. I don't know how the correct code should look like in Python. In VB, I've posted the code in my original question. Since I'm using comtypes, I looked up the generated module and this is what I can find about this SetXData method: COMMETHOD([dispid(1027), helpstring(u'Sets the extended data (XData) associated with an object')], HRESULT, 'SetXData', ( ['in'], VARIANT, 'XDataType' ), ( ['in'], VARIANT, 'XDataValue' )), _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor