wxPyValidator* ptr = NULL;
wxPyValidator* self = (wxPyValidator*)this;
- wxPyTState* state = wxPyBeginBlockThreads();
+ wxPyBeginBlockThreads();
if (self->m_myInst.findCallback("Clone")) {
PyObject* ro;
ro = self->m_myInst.callCallbackObj(Py_BuildValue("()"));
Py_DECREF(ro);
}
}
- wxPyEndBlockThreads(state);
+ wxPyEndBlockThreads();
// This is very dangerous!!! But is the only way I could find
// to squash a memory leak. Currently it is okay, but if the
wxAcceleratorTable *GetAcceleratorTable();
#ifdef __WXMSW__
- // This seems pretty bogus, but is currently needed for SplitTree
+ // A way to do the native draw first... Too bad it isn't in wxGTK too.
void OnPaint(wxPaintEvent& event);
#endif
+
+ wxButton* GetDefaultItem();
+ void SetDefaultItem(wxButton *btn);
};
%pragma(python) addtomethod = "wxPrePanel:val._setOORInfo(val)"
void InitDialog();
- wxButton* GetDefaultItem();
- void SetDefaultItem(wxButton *btn);
};