%{
-#include "export.h"
+#include "wxPython.h"
#include <wx/calctrl.h>
%}
//---------------------------------------------------------------------------
+%{
+ // Put some wx default wxChar* values into wxStrings.
+ DECLARE_DEF_STRING(CalendarNameStr);
+%}
+
class wxCalendarCtrl : public wxControl
{
public:
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxCAL_SHOW_HOLIDAYS | wxWANTS_CHARS,
- const char* name = "calendar");
+ const wxString& name = wxPyCalendarNameStr);
%name(wxPreCalendarCtrl)wxCalendarCtrl();
bool Create(wxWindow *parent,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxCAL_SHOW_HOLIDAYS | wxWANTS_CHARS,
- const char* name = "calendar");
+ const wxString& name = wxPyCalendarNameStr);
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
%pragma(python) addtomethod = "wxPreCalendarCtrl:val._setOORInfo(val)"
//---------------------------------------------------------------------------
%init %{
- wxClassInfo::CleanUpClasses();
- wxClassInfo::InitializeClasses();
%}
//---------------------------------------------------------------------------