I am trying to construct an object of class wx.Palette() but can’t find the correct way of passing the parameters.
pal = wx.Palette(256, [red list], [green list], [blue list]) does not work
I also tried with strings, ctypes, array(‘B’, …). Nothing is working.
This has been marked as a TODO in the code for a long time, people don't need palettes very often, so it hasn't been done until now. In the next release you'll be able to pass lists of small integers.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!