wxPyValidator* ptr = NULL;
wxPyValidator* self = (wxPyValidator*)this;
- wxPyBeginBlockThreads();
+ wxPyBlock_t blocked = wxPyBeginBlockThreads();
if (wxPyCBH_findCallback(self->m_myInst, "Clone")) {
PyObject* ro;
ro = wxPyCBH_callCallbackObj(self->m_myInst, Py_BuildValue("()"));
Py_DECREF(ro);
}
}
- wxPyEndBlockThreads();
+ wxPyEndBlockThreads(blocked);
// This is very dangerous!!! But is the only way I could find
// to squash a memory leak. Currently it is okay, but if the
//---------------------------------------------------------------------------
-class wxPyPen : public wxPen {
-public:
- wxPyPen(wxColour& colour, int width=1, int style=wxSOLID)
- : wxPen(colour, width, style)
- { m_dash = NULL; }
- ~wxPyPen();
-
- void SetDashes(int nb_dashes, const wxDash *dash);
-
-private:
- wxDash* m_dash;
-};
-
-
-//---------------------------------------------------------------------------
-
class wxPyTimer : public wxTimer
{
public:
- wxPyTimer(wxEvtHandler *owner=NULL, int id = -1)
- : wxTimer(owner, id)
- {
- if (owner == NULL) SetOwner(this);
- }
+ wxPyTimer(wxEvtHandler *owner=NULL, int id = -1);
DEC_PYCALLBACK__(Notify);
PYPRIVATE;
+ DECLARE_ABSTRACT_CLASS(wxPyTimer)
};
//---------------------------------------------------------------------------
+#ifndef __WXX11__
class wxPyDropSource : public wxDropSource {
public:
#ifndef __WXGTK__
PYPRIVATE;
};
-
+#endif
//---------------------------------------------------------------------------
class wxPyVListBox;
class wxPyHtmlListBox;
class wxPyPanel;
+class wxPyScrolledWindow;
class wxPyPopupTransientWindow;
class wxPyPreviewFrame;
class wxPyWindow;
class wxPyControl;
class wxPyPrintout;
class wxGenericDragImage;
+class wxPyTaskBarIcon;
#ifdef __WXMAC__