wx.StaticBox and siblings creation order, and other fixes from Kevin Ollivier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -18,10 +18,6 @@ class TestWindow(wx.ScrolledWindow):
|
||||
#self.clrList.sort()
|
||||
self.bg_bmp = images.getGridBGBitmap()
|
||||
|
||||
# Event handlers
|
||||
self.Bind(wx.EVT_PAINT, self.OnPaint)
|
||||
self.Bind(wx.EVT_ERASE_BACKGROUND, self.OnEraseBackground)
|
||||
|
||||
# This could also be done by getting the window's default font;
|
||||
# either way, we need to have a font loaded for later on.
|
||||
#self.SetBackgroundColour("WHITE")
|
||||
@@ -54,6 +50,11 @@ class TestWindow(wx.ScrolledWindow):
|
||||
self.SetScrollbars(
|
||||
self.cellWidth, self.lineHeight, numCells, len(self.clrList) + 2
|
||||
)
|
||||
|
||||
# Event handlers - moved here so events won't fire before init is
|
||||
# finished.
|
||||
self.Bind(wx.EVT_PAINT, self.OnPaint)
|
||||
self.Bind(wx.EVT_ERASE_BACKGROUND, self.OnEraseBackground)
|
||||
|
||||
|
||||
# tile the background bitmap loaded in __init__()
|
||||
|
Reference in New Issue
Block a user