Thanks for the advice, but that doesn't seem to be the problem. In my actual application,
this error is occurring consistently across Frames, Panels, and even the STC Editor.
The slightly larger demo application below (with a Panel added) shows the same issue
It also looks like the problem isn't in the hex string interpretation: replacing it with
wx.Colour(0, 43, 54) has no effect on the incorrect output.
Regards,
Matt
--------------------------------------------------------------------------------
#!/usr/bin/env python
import wx
app = wx.App(False) # Create a new app, don't redirect stdout/stderr to a window.
frame = wx.Frame(None, wx.ID_ANY, "Hello World") # A Frame is a top-level window.
sizer = wx.BoxSizer(wx.VERTICAL)
panel = wx.Panel(frame, wx.ID_ANY, size=(100,100))
sizer.Add(panel, flag=wx.ALL, border=10)
panel.SetBackgroundColour('#002b36')
frame.SetSizerAndFit(sizer)
frame.Show(True) # Show the frame.
app.MainLoop()
--------------------------------------------------------------------------------