[wxPython] wxPalette in wxPython

Hi people,

I'm having trouble using the Python wrapper for the wxPalette class.
Specifically, I can't get the .GetRGB() member function to work. In
wxWindows referencs indicates this should return three pointers to the
three RGB values. What does it return in Python? The python function
requires 5 arguments: 'self', pixel-index and three more. What should
the last three objects be?

I think perhaps this is a bug/error in the wxPython wrapping, but I'm
not sure. One would expect the wxPython function to require just the
pixel number, then return a tuple of three integers/chars. Anyone else
out there got this function to work?

cheers,
Bryan

PS. I'm using wxPython-2.3.2.1 with python2.1 on linux-RH7.1

···

--
Bryan Cole
Teraview Ltd., 302-304 Cambridge Science Park, Milton Road, Cambridge
CB4 0WG, United Kingdom.
tel: +44 (1223) 435380 / 435386 (direct-dial) fax: +44 (1223) 435382

I think perhaps this is a bug/error in the wxPython wrapping, but I'm
not sure.

You're right.

One would expect the wxPython function to require just the
pixel number, then return a tuple of three integers/chars.

Actually, it will be four: The bool return value of the C++ method followed
by the rgb values.

I'll check in a fix later today.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!