From 874cc42557bea53e2e503a7d1978e84a4a8034d3 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 10 Feb 2005 22:28:44 +0000 Subject: [PATCH] Put the deprecation wrapper on __init__, not the class git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_notebook.i | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wxPython/src/_notebook.i b/wxPython/src/_notebook.i index 281998f9c7..3ab924fe1c 100644 --- a/wxPython/src/_notebook.i +++ b/wxPython/src/_notebook.i @@ -438,9 +438,8 @@ public: wxNotebook *GetNotebook(); }; - -%pythoncode { NotebookSizer = wx._deprecated(NotebookSizer, "NotebookSizer is no longer needed.") } -%pythoncode { BookCtrlSizer = wx._deprecated(BookCtrlSizer, "BookCtrlSizer is no longer needed.") } +%pythoncode { NotebookSizer.__init__ = wx._deprecated(NotebookSizer.__init__, "NotebookSizer is no longer needed.") } +%pythoncode { BookCtrlSizer.__init__ = wx._deprecated(BookCtrlSizer.__init__, "BookCtrlSizer is no longer needed.") } //---------------------------------------------------------------------------