Re: [PyQt] Not getting it re sip.voidptr

2012-11-11 Thread Phil Thompson
On Sun, 04 Nov 2012 18:53:18 +, Phil Thompson wrote: > On Sun, 4 Nov 2012 09:34:32 -0800, David Cortesi > wrote: When I try assignment, vptr[1] = 0x00 I get the message, TypeError: 'int' does not have the buffer interface >> >>> I can't reproduce this - can you se

Re: [PyQt] Not getting it re sip.voidptr

2012-11-04 Thread Phil Thompson
On Sun, 4 Nov 2012 09:34:32 -0800, David Cortesi wrote: >>> When I try assignment, >>> vptr[1] = 0x00 >>> I get the message, >>> TypeError: 'int' does not have the buffer interface > >> I can't reproduce this - can you send a short, complete test that >> demonstrates the problem. > > Her

Re: [PyQt] Not getting it re sip.voidptr

2012-11-04 Thread David Cortesi
>> When I try assignment, >> vptr[1] = 0x00 >> I get the message, >> TypeError: 'int' does not have the buffer interface > I can't reproduce this - can you send a short, complete test that > demonstrates the problem. Here you go: Ubuntu 12.10, PyQt4 4.9.3-4 $ python Python 2.7.3 (default

Re: [PyQt] Not getting it re sip.voidptr

2012-11-04 Thread Phil Thompson
On Sat, 3 Nov 2012 12:15:21 -0700, David Cortesi wrote: > Following up on a stackoverflow answer re manipulating > a QImage, I access the contents of an image by: > > vptr = myQi.bytes() > vptr.setsize(myQi.byteCount()) > > Per the Riverbank docs, > >> A sip.voidptr may also be given a

[PyQt] Not getting it re sip.voidptr

2012-11-03 Thread David Cortesi
Following up on a stackoverflow answer re manipulating a QImage, I access the contents of an image by: vptr = myQi.bytes() vptr.setsize(myQi.byteCount()) Per the Riverbank docs, > A sip.voidptr may also be given a size... If it has a size then it is > also able to support Python’s buffer