projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tried to restore wxPopupTransientWindow functionality
[wxWidgets.git]
/
wxPython
/
demo
/
ColorPanel.py
diff --git
a/wxPython/demo/ColorPanel.py
b/wxPython/demo/ColorPanel.py
index f90a8b0e73e46fa7102d73b9715b1f0830b462c7..a5b6a91cc7181629265d4e48fddf36b32a772a8b 100644
(file)
--- a/
wxPython/demo/ColorPanel.py
+++ b/
wxPython/demo/ColorPanel.py
@@
-1,13
+1,17
@@
+#
+# 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):
- wxWindow.__init__(self, parent, -1,
- wxDefaultPosition, wxDefaultSize, wxRAISED_BORDER)
+ wx.Window.__init__(self, parent, -1, style = wx.SIMPLE_BORDER)
self.SetBackgroundColour(color)
#---------------------------------------------------------------------------
self.SetBackgroundColour(color)
#---------------------------------------------------------------------------
+