Fixed event binding in NotebookPage

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2005-01-23 15:21:30 +00:00
parent 76bdc1d23a
commit 9718d66a76

View File

@ -245,7 +245,7 @@ public:
class NotebookPage(wx.Panel):
"""
There is an old (and apparently unsolvable) bug when placing a
window with a nonstandard background colour in a wxNotebook on
window with a nonstandard background colour in a wx.Notebook on
wxGTK, as the notbooks's background colour would always be used
when the window is refreshed. The solution is to place a panel in
the notbook and the coloured window on the panel, sized to cover
@ -258,7 +258,7 @@ class NotebookPage(wx.Panel):
style=wx.TAB_TRAVERSAL, name="panel"):
wx.Panel.__init__(self, parent, id, pos, size, style, name)
self.child = None
EVT_SIZE(self, self.OnSize)
self.Bind(wx.EVT_SIZE, self.OnSize)
def OnSize(self, evt):
if self.child is None: