]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed event binding in NotebookPage
authorRobin Dunn <robin@alldunn.com>
Sun, 23 Jan 2005 15:21:30 +0000 (15:21 +0000)
committerRobin Dunn <robin@alldunn.com>
Sun, 23 Jan 2005 15:21:30 +0000 (15:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_notebook.i

index 56a016a81297df138ef3c5943a7a80fdf2611ac5..4edc1f517b8f9405d004fd84676ebf51113a7373 100644 (file)
@@ -245,7 +245,7 @@ public:
 class NotebookPage(wx.Panel):
     """
     There is an old (and apparently unsolvable) bug when placing a
 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
     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
                  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:
 
     def OnSize(self, evt):
         if self.child is None: