[wxpython-users] Re: Problems with SetBackground Color

David Anderson zerty.david at gmail.com
Tue May 20 03:22:27 PDT 2008


Would be: wx.lib.stattext.GenStaticText?

I'll try here, Thx

On Tue, May 20, 2008 at 2:26 AM, Chris.Barker <Chris.Barker at noaa.gov> wrote:

> Mike Driscoll wrote:
>
>>    Hi all, I'm using python 2.5 and wx 2.8, I have a program that in
>>>    my MS Windows Works fine, but when I get it on Ubuntu, verywhere
>>>    where I've used the SetBackgroundColor method doesn't work, For
>>>    example I create a StaticText ST, and the do
>>>    ST.SetBackgroundColor("White"), On Windows it appears te Static
>>>    text with a White background, but on Ubuntu it gets the standard
>>>    grey color...
>>>    why is that?
>>>
>>
>  just a couple of weeks ago. If I recall correctly, the color settings
>> aren't supported on some OSes in those widgets. I'm thinking you have to=
 use
>> the generic control instead as it gives more flexibility for that sort of
>> thing.
>>
>> Hopefully I am mistaken. But troll the archives for SetBackgroundColour =
to
>> be sure.
>>
>
> nope, you're right. StaticText is implemented differently on different
> platforms -- I think on GTK it is not a true Window, but just text printed
> on the underlying window, which would explain the behavior you see. It
> doesn't get all the Mouse events, either.
>
> There is a generic StaticText that is a true window on all platforms --
> take a look in wx.lib.
>
> -Chris
>
>
>
> --
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R            (206) 526-6959   voice
> 7600 Sand Point Way NE   (206) 526-6329   fax
> Seattle, WA  98115       (206) 526-6317   main reception
>
> Chris.Barker at noaa.gov
>
> _______________________________________________
> wxpython-users mailing list
> wxpython-users at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200805=
20/7586e3e1/attachment-0001.htm


More information about the wxpython-users mailing list