[wxPython-users] How to change background color in dialogs?
Kevin Ollivier
kevino at theolliviers.com
Thu May 3 12:32:18 PDT 2007
Hi Jerry,
On May 3, 2007, at 12:15 PM, Jerry LeVan wrote:
>
> On May 3, 2007, at 2:29 PM, Werner F. Bruhin wrote:
>
>> Hi Jerry,
>>
>> Jerry LeVan wrote:
>>> Hi,
>>>
>>> I can't seem to find the magic to change the background color
>>> in a dialog...
>>>
>>> Here is a fragment that does not work:
>> It worked for me, i.e. I get an empty blue dialog screen, I am on:
>>
>> # Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
>> (Intel)]
>> # wxPython 2.8.4.0.20070502, Boa Constructor 0.5.2
>>
>>
>> Werner
>
> Hmmm,
>
> Must be a mac problem, I tested on a Linux Fedora 6 box and get
> a blue background...(Using the current FC6 Python/wxPython RPMS).
>
> Where should (suspected) Mac bugs be reported?
You can always use the SF bug tracker for wxWidgets (at http://
www.sf.net/projects/wxwindows), but I'm fairly certain that the
problem you're having is a limitation of the native control on Mac.
What you can do to make this work everywhere is create a wx.Panel,
add it as the dialog's child, and then call SetBackgroundColour on
the panel. This should give you the desired results.
Regards,
Kevin
>
> Jerry
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-
> help at lists.wxwidgets.org
>
More information about the wxpython-users
mailing list