[wxPython-users] StaticText.SetBackgroundColour() ignored
Robin Dunn
robin at alldunn.com
Wed Jul 5 12:44:53 PDT 2006
Frank Millman wrote:
> 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.
On GTK the static text widget is not a real window, but is drawn
directly on the parent window. Because of this it doesn't support
background color settings. The GenStaticText class is a generic
wx.Control on which some text is drawn. Since it has a real wx.Window
then it means that it can have a background color, can respond to all
mouse events, etc. but it also means that it can't have a truly
transparent background like the native widget can.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list