From: Robin Dunn Date: Sun, 23 Jan 2005 15:21:30 +0000 (+0000) Subject: Fixed event binding in NotebookPage X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9718d66a76ba0df3a9df71da9508eeb62ff0d706 Fixed event binding in NotebookPage git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_notebook.i b/wxPython/src/_notebook.i index 56a016a812..4edc1f517b 100644 --- a/wxPython/src/_notebook.i +++ b/wxPython/src/_notebook.i @@ -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: