New toolbar wrappers
wxMask demos GenericButton now derives from wxControl Lots of small changes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user