Orange in Windows isn't very orange
Tim Roberts
timr at probo.com
Mon Mar 3 12:01:09 PST 2008
On Sun, 02 Mar 2008 14:21:39 -0800, Chris Carlen <crobc at sbcglobal.net>
wrote:
>
> >>> wx.NamedColour("Orange")
> wx.Colour(204, 50, 50, 255)
>
> Yeah right, like that's orange?
>
> In Linux:
>
> wx.NamedColor("Orange")
> wx.Colour(255, 165, 0, 255)
>
> That's better.
Nah, that's "butternut". Orange is more like (255, 104, 0).
> What's with "Orange" in Windoze?
Dunno, but it's coming from the wxWidgets C++ code. Windows doesn't
have any concept of a named color database. For a happier experience on
Windows, try this before using named colors:
from wx.lib import colourdb
...
colourdb.updateColorDB()
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the wxpython-users
mailing list