hello,
With a lot of struggling I got the named colors working,
but I doubt it's correct, because for every conversion I've to create a ColourDatabase object ?
if colordlg.ShowModal() == wx.ID_OK:
# get the new color and store it
cdb = wx.ColourDatabase()
JG.Scope_Signal_Color [S] = \
cdb.FindName ( colordlg.GetColourData().GetColour().Get())
And Now I've got it working,
it's not working very well,
a lot of colors can not be found,
so in general you don't get what you selected with the colordialog.
And now I wonder why some libraries (like plot) require named colors !!
Some arguments against:
- I can't imagine that named colors are faster than normal RGB tupples.
- Names can contain typos, while RGB colors always return a valid value.
- I (like a few other people) are not familiar with those fancy color names,
but we all know the numbers 0 to 255
- If a library want to support named colors, besides RGB tupples,
looks like peanuts to me.
So I can't think of any reason why to use named colors only as a library input,
what am I missing ?
cheers,
Stef Mientki