[wxPython] Strange behaviour of colourdb.py with some colors

Hi,
why do some colors in the colordatabase of wxPython
(colourdb.py) that are identical there by RGB value and different
only by name such as MEDIUMVIOLETRED (199,21,133) or
MEDIUMORCHID (186,85,211) give different RGB values in the
program listed below, e.g.:

MEDIUMVIOLETRED (199,21,133)
MEDIUM VIOLET RED (219,112,147)

MEDIUMORCHID (186,85,211)
MEDIUM ORCHID (147,112, 219)

Could it be that some values in colourdb.py do not overwrite the
already existing original values in wxTheColourDatabase? Or did I
make some mistake somewhere?
Regards Christoph

···

#---------------------------------------------------------
from wxPython.wx import *
from wxPython.lib import colourdb

class MyFrame(wxFrame):
    def __init__(self, parent, ID, title):
        wxFrame.__init__(self, parent, ID, title,
                         wxDefaultPosition, wxSize(320, 250))
        self.CreateStatusBar()
        self.pnl = wxPanel(self, 101, wxDefaultPosition,
wxDefaultSize)
        colourdb.updateColourDB()
        lst = colourdb.getColourList()
        self.lbl = wxStaticText(self.pnl, -1, 'Select Backgroundcolour
by clicking selecting colour from ListboxS', wxPoint(10, 10),
wxSize(280,-1))
        self.lst = wxListBox(self.pnl, 60, wxPoint(10, 50),
wxSize(280, 120), lst, wxLB_SINGLE)

        EVT_LISTBOX(self, 60, self.EvtListBox)

    def EvtListBox(self, event):
        self.lbl.SetBackgroundColour(event.GetString())
        self.pnl.SetBackgroundColour(event.GetString())
        self.lbl.Refresh()
        self.pnl.Refresh()
        color = self.lbl.GetBackgroundColour()
        name = event.GetString()
        self.SetStatusText("%s:\t%s" % (name, color))

class MyApp(wxApp):
    def OnInit(self):
        frame = MyFrame(NULL, -1, "wxColourTest")
        frame.Show(true)
        self.SetTopWindow(frame)
        return true

app = MyApp(0)
app.MainLoop()
#---------------------------------------------------------

Could it be that some values in colourdb.py do not overwrite the
already existing original values in wxTheColourDatabase?

Probably, I'll check into it.

···

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