[wxPython-users] StaticText.SetBackgroundColour() ignored
Frank Millman
frank at chagford.com
Wed Jul 5 05:30:57 PDT 2006
> -----Original Message-----
> From: David McNab [mailto:david at rebirthing.co.nz]
> Sent: 05 July 2006 02:17 PM
> To: wxPython-users at lists.wxwidgets.org
> Subject: [wxPython-users] StaticText.SetBackgroundColour() ignored
>
> Hi,
>
> I'm calling SetBackgroundColour on a row of widgets,
> including a StaticText, a TextCtrl and a Gauge.
>
> The colour change is effective for the TextCtrl and Gauge,
> but does nothing to the StaticText.
>
> What am I doing wrong?
>
> --
> Kind regards
> David
>
Try 'from wx.lib.stattext import GenStaticText', and use GenStaticText
instead of wx.StaticText.
I don't understand the technical details, but it provides a lot of
functionality that the standard StaticText lacks.
HTH
Frank Millman
More information about the wxpython-users
mailing list