X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f90df854ed9630ab60ac7729287807e4d1d8286..7ece89c6b10b74d90534afcffc61522a8f394d8c:/utils/wxPython/src/sizers.i diff --git a/utils/wxPython/src/sizers.i b/utils/wxPython/src/sizers.i index cc9dfca159..341e1cdb04 100644 --- a/utils/wxPython/src/sizers.i +++ b/utils/wxPython/src/sizers.i @@ -6,7 +6,7 @@ // // Created: 18-Sept-1999 // RCS-ID: $Id$ -// Copyright: (c) 1998 by Total Control Software +// Copyright: (c) 1999 by Total Control Software // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// @@ -32,20 +32,6 @@ //--------------------------------------------------------------------------- -%{ -class wxPyUserData : public wxObject { -public: - wxPyUserData(PyObject* obj) { m_obj = obj; Py_INCREF(m_obj); } - ~wxPyUserData() { - bool doSave = wxPyRestoreThread(); - Py_DECREF(m_obj); - wxPySaveThread(doSave); - } - PyObject* m_obj; -}; -%} - -//--------------------------------------------------------------------------- class wxSizerItem { public: @@ -69,6 +55,11 @@ public: int GetFlag(); int GetBorder(); + void SetInitSize( int x, int y ); + void SetOption( int option ); + void SetFlag( int flag ); + void SetBorder( int border ); + // wxObject* GetUserData(); %addmethods { // Assume that the user data is a wxPyUserData object and return the contents