Quoting King Simon-NFHD78 <simon.king@motorola.com>:
Hello all,
Can anyone confirm a bug in TextCtrl.SetForegroundColour on the Mac for
me? In the sample application below, use the colour selector button to
set the foreground colour of the text control (it also updates the
contents to show the RGB values).On Windows (XP SP2), every colour I've tried has updated the text
control as expected. However, on the Mac (Leopard, in case it makes any
difference), once the colour has changed away from black (0, 0, 0, 255),
it is impossible to change it back to black. The colour remains at its
previous setting.
This is a known issue. I don't remember details but wxMac has a minor
hack in the code to deal with themes that keys off of the colour being
black or not.
I can work around it for now by using something like (0, 0, 1, 255)
instead of black, but if others can confirm the same behaviour, should I
raise a bug?
Your workaround is correct.
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!