X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..6ea48c514e0b911113020c76fdb83b64f5941ddb:/wxPython/demo/ColorPanel.py?ds=inline

diff --git a/wxPython/demo/ColorPanel.py b/wxPython/demo/ColorPanel.py
index a5b6a91cc7..29ef92c1c1 100644
--- a/wxPython/demo/ColorPanel.py
+++ b/wxPython/demo/ColorPanel.py
@@ -12,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)
+
 
 #---------------------------------------------------------------------------