added font encoding support
some more demos some contributed items into the library many little tweaks and such git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -624,6 +624,29 @@ private:
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
#define DEC_PYCALLBACK_BOOL_STRINGSTRING(CBNAME) \
|
||||
bool CBNAME(const wxString& a, const wxString& b); \
|
||||
bool base_##CBNAME(const wxString& a, const wxString& b);
|
||||
|
||||
|
||||
#define IMP_PYCALLBACK_BOOL_STRINGSTRING(CLASS, PCLASS, CBNAME) \
|
||||
bool CLASS::CBNAME(const wxString& a, const wxString& b) { \
|
||||
bool rval; \
|
||||
bool doSave = wxPyRestoreThread(); \
|
||||
if (m_myInst.findCallback(#CBNAME)) \
|
||||
rval = m_myInst.callCallback(Py_BuildValue("(ss)", \
|
||||
a.c_str(), b.c_str())); \
|
||||
else \
|
||||
rval = PCLASS::CBNAME(a, b); \
|
||||
wxPySaveThread(doSave); \
|
||||
return rval; \
|
||||
} \
|
||||
bool CLASS::base_##CBNAME(const wxString& a, const wxString& b) { \
|
||||
return PCLASS::CBNAME(a, b); \
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
#define DEC_PYCALLBACK_STRING_(CBNAME) \
|
||||
wxString CBNAME(); \
|
||||
wxString base_##CBNAME();
|
||||
|
Reference in New Issue
Block a user