[PyQt] c array question

2010-10-26 Thread Wilbert Berendsen
Hi,

I can't get sip to accept a c array definition like this in a specification 
file:

int points[4];

sip simply complains with 'syntax error'.

Should I use a different syntax? Or isn't this possible by default and should 
I write code to get and set items (or the complete array)?

with many thanks,
Wilbert Berendsen

-- 
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world.
-- Mahatma Gandhi
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] c array question

2010-10-26 Thread Phil Thompson
On Tue, 26 Oct 2010 13:54:56 +0200, Wilbert Berendsen wbs...@xs4all.nl
wrote:
 Hi,
 
 I can't get sip to accept a c array definition like this in a
 specification 
 file:
 
 int points[4];
 
 sip simply complains with 'syntax error'.
 
 Should I use a different syntax? Or isn't this possible by default and
 should 
 I write code to get and set items (or the complete array)?

You will have to provide some handwritten code.

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] c array question

2010-10-26 Thread Wilbert Berendsen
Op dinsdag 26 oktober 2010 schreef Phil:

 You will have to provide some handwritten code.

Thanks!

best regards,
Wilbert Berendsen

-- 
http://www.wilbertberendsen.nl/
You must be the change you wish to see in the world.
-- Mahatma Gandhi
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt