I'm pretty new to programming in wxPython, and I am having a problem, hope someone may help me. I wanted do obtain a wxPalette from a wxBitmap object. First, I wrote the code in Windows - it worked - and then, when I tryed to use the code in Linux it simply didn't work.
Initialy I import a bitmap file:
>>> bitmap = wxBitmap("image path", wxBITMAP_TYPE_GIF)
<wxPython.gdi.wxBitmap instance; proxy of C++ wxBitmap instance at _9b37428_wxBitmap_p>
Then, I try to obtain its Colour Palette by:
>>> palette = bitmap.GetPalette()
But, when I check the palette value, it's simply empty.
I use BoaConstructor, put don't think it would influence in this case....
I'm pretty new to programming in wxPython, and I am having a problem, hope someone may help me. I wanted do obtain a wxPalette from a wxBitmap object. First, I wrote the code in Windows - it worked - and then, when I tryed to use the code in Linux it simply didn't work.
Initialy I import a bitmap file:
>>> bitmap = wxBitmap("image path", wxBITMAP_TYPE_GIF)
<wxPython.gdi.wxBitmap instance; proxy of C++ wxBitmap instance at _9b37428_wxBitmap_p>
Then, I try to obtain its Colour Palette by:
>>> palette = bitmap.GetPalette()
But, when I check the palette value, it's simply empty.
Is it empty or is it None? It may just not be getting set in the wxGTK version of wxBitmap.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!