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:
Robin Dunn
1999-12-23 20:05:08 +00:00
parent 8d772832a0
commit 9b3d3bc44b
42 changed files with 4249 additions and 2442 deletions

View File

@@ -71,6 +71,20 @@ HELPEREXPORT bool wxPyRestoreThread();
HELPEREXPORT void wxPySaveThread(bool doSave);
HELPEREXPORT PyObject* wxPy_ConvertList(wxListBase* list, const char* className);
//----------------------------------------------------------------------
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;
};
//----------------------------------------------------------------------
// These are helpers used by the typemaps
@@ -122,19 +136,6 @@ public:
PyObject* m_func;
};
//---------------------------------------------------------------------------
// class wxPyMenu : public wxMenu {
// public:
// wxPyMenu(const wxString& title = "", PyObject* func=NULL);
// ~wxPyMenu();
// private:
// static void MenuCallback(wxMenu& menu, wxCommandEvent& evt);
// PyObject* func;
// };
//---------------------------------------------------------------------------
class wxPyTimer : public wxTimer {
@@ -185,9 +186,9 @@ private:
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// These classes can be derived from in Python and passed through the event
// system without loosing anything. They do this by keeping a reference to
// themselves and some special case handling in wxPyCallback::EventThunker.
// These Event classes can be derived from in Python and passed through the
// event system without loosing anything. They do this by keeping a reference
// to themselves and some special case handling in wxPyCallback::EventThunker.
class wxPyEvtSelfRef {