X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..b4eecebd423df0c6efe86d7658cd3df818d67ed8:/wxPython/demo/ColorPanel.py?ds=sidebyside diff --git a/wxPython/demo/ColorPanel.py b/wxPython/demo/ColorPanel.py index 72f725842b..29ef92c1c1 100644 --- a/wxPython/demo/ColorPanel.py +++ b/wxPython/demo/ColorPanel.py @@ -1,9 +1,7 @@ -# 11/4/03 - grimmtooth@softhome.net (Jeff Grimmett) -# -# o Updated for wx namespace # # Note: this module is not a demo per se, but is used by many of # the demo modules for various purposes. +# import wx @@ -14,6 +12,9 @@ class ColoredPanel(wx.Window): def __init__(self, parent, color): wx.Window.__init__(self, parent, -1, style = wx.SIMPLE_BORDER) self.SetBackgroundColour(color) + if wx.Platform == '__WXGTK__': + self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM) + #---------------------------------------------------------------------------