Getting a white wx.Colour in 2.9

I used this code to get a white color in 2.8, whats the proper way to
get white?

    color = wx.Colour(wx.WHITE)
  File "C:\py26\lib\site-packages\wx-2.9.2-msw\wx\_gdi.py", line 130,
in __init__
    _gdi_.Colour_swiginit(self,_gdi_.new_Colour(*args, **kwargs))
TypeError: in method 'new_Colour', expected argument 1 of type 'byte'

Hi,

···

On Sat, Oct 1, 2011 at 1:22 PM, Mark <markreed99@gmail.com> wrote:

I used this code to get a white color in 2.8, whats the proper way to
get white?

color = wx.Colour(wx.WHITE)
File "C:\py26\lib\site-packages\wx-2.9.2-msw\wx\_gdi.py", line 130,
in __init__
_gdi_.Colour_swiginit(self,_gdi_.new_Colour(*args, **kwargs))
TypeError: in method 'new_Colour', expected argument 1 of type 'byte'

Are you sure that worked in 2.8?

wx.WHITE is a Colour object so you can just use it or,

wx.Colour(255,255,255)
wx.NamedColour("white")

Cody

Are you sure that worked in 2.8?

wx.WHITE is a Colour object so you can just use it or,

wx.Colour(255,255,255)
wx.NamedColour("white")

Cody

Thanks, I'll have to check why that code may not have been called
previously. I did rearrange some things when I picked up 2.9.

Mark