[wxPython] windows/Linux dialog box colours

Python 2.1.1
wxPython 2.3.0

Hello,

I am trying to develop parallel in Windows and Linux and have run into an anomaly regarding background colours in dialog boxes. If I run the following code under Windows:

class Dialog(wxDialog):
def __init__(self, parent, log):

wxDialog.__init__(self, parent, -1, "Test Dialog Panel",
wxPyDefaultPosition, wxSize(350, 260))
self.log = log

self.SetBackgroundColour(wxNamedColour("GOLD"))

etc.

then I get a dialog box with a gold background. However, when I run it under Linux the background remains just plain gray. How can one give a dialog box a background colour other than gray under Linux?

Also I noticed that when running the demo wxLayoutConstraints under Linux Panel A is blue and Panel B is red while under Windows both are gray. What do you people who are developing for both platforms do so that your GUI interfaces look uniform under both systems?

Thank you,

Kay

···

-----------------------------------------------------------------------
Das Communication-Pack von Siemens.... Buy.....
http://www.arcor.de/home/redir.php/siemens1
-----------------------------------------------------------------------

self.SetBackgroundColour(wxNamedColour("GOLD"))

etc.

then I get a dialog box with a gold background. However, when I run it

under Linux the background remains just plain gray. How can one give a
dialog box a background colour other than gray under Linux?

I'm not sure why wxGTK's dialog is not changing colours, I don't see
anything in the code about it. Please enter it as a bug report at
SourceForge.

Also I noticed that when running the demo wxLayoutConstraints under Linux

Panel A is blue and Panel B is red while under Windows both are gray. What
do you people who are developing for both platforms do so that your GUI
interfaces look uniform under both systems?

Do you mean the buttons? If so then that is an issue of the native controls
behaving differently. On Windows they are always grey, (Unless you set the
background explicitly) on wxGTK they get their parent's colour.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!