projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added taborder sample
[wxWidgets.git]
/
wxPython
/
demo
/
ColorPanel.py
diff --git
a/wxPython/demo/ColorPanel.py
b/wxPython/demo/ColorPanel.py
index f7dc76ba0b696132e4aaf6b18af980886ad036a7..29ef92c1c148c3c915654ddbeac7f9281816aa00 100644
(file)
--- a/
wxPython/demo/ColorPanel.py
+++ b/
wxPython/demo/ColorPanel.py
@@
-1,12
+1,20
@@
+#
+# Note: this module is not a demo per se, but is used by many of
+# the demo modules for various purposes.
+#
-from wxPython.wx import *
+import wx
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
-class ColoredPanel(wxWindow):
+class ColoredPanel(wx
.
Window):
def __init__(self, parent, color):
def __init__(self, parent, color):
- wx
Window.__init__(self, parent, -1, style = wxSIMPLE_BORDER) #wxRAISED
_BORDER)
+ wx
.Window.__init__(self, parent, -1, style = wx.SIMPLE
_BORDER)
self.SetBackgroundColour(color)
self.SetBackgroundColour(color)
+ if wx.Platform == '__WXGTK__':
+ self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
+
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
+