TextCtrl.SetBackgroundColour() not working?

Ed Leafe ed at leafe.com
Mon Jun 4 09:16:52 PDT 2007


	I've noticed that SetBackgroundColour() doesn't seem to have any  
effect on a TextCtrl. In my app, if I want to flag a bad value with a  
red background, I use the code:

txt.SetBackgroundColour((255, 0, 0))
txt.Refresh()

... but nothing changes. Is changing the background not supported for  
text controls?

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com






More information about the wxpython-users mailing list