A more dynamic wxWizard sample, and a fix for wxGrid wrappers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-08-22 00:00:04 +00:00
parent a4353f07c6
commit 85260f24de
7 changed files with 226 additions and 13 deletions

View File

@@ -398,7 +398,7 @@ wxPyMake_TEMPLATE(wxGridTableBase)
void CBNAME(int a, const wxString& c) { \
bool found; \
wxPyBeginBlockThreads(); \
if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
PyObject* s = wx2PyString(c); \
wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)",a,s)); \
Py_DECREF(s); \