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:
@@ -245,7 +245,7 @@ public:
|
|||||||
class NotebookPage(wx.Panel):
|
class NotebookPage(wx.Panel):
|
||||||
"""
|
"""
|
||||||
There is an old (and apparently unsolvable) bug when placing a
|
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
|
wxGTK, as the notbooks's background colour would always be used
|
||||||
when the window is refreshed. The solution is to place a panel in
|
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
|
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"):
|
style=wx.TAB_TRAVERSAL, name="panel"):
|
||||||
wx.Panel.__init__(self, parent, id, pos, size, style, name)
|
wx.Panel.__init__(self, parent, id, pos, size, style, name)
|
||||||
self.child = None
|
self.child = None
|
||||||
EVT_SIZE(self, self.OnSize)
|
self.Bind(wx.EVT_SIZE, self.OnSize)
|
||||||
|
|
||||||
def OnSize(self, evt):
|
def OnSize(self, evt):
|
||||||
if self.child is None:
|
if self.child is None:
|
||||||
|
Reference in New Issue
Block a user