]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/calendar.i
Don't create a bitmap with dimensions <= 0...
[wxWidgets.git] / wxPython / src / calendar.i
index 120e372b07ffcecd844aec2e46833cbd3f44b4e6..91369950d2f4dffc75f3e0d636a19044c0ad7e56 100644 (file)
@@ -155,8 +155,17 @@ public:
                    const wxDateTime& date = wxDefaultDateTime,
                    const wxPoint& pos = wxDefaultPosition,
                    const wxSize& size = wxDefaultSize,
-                   long style = wxCAL_SHOW_HOLIDAYS,
+                   long style = wxCAL_SHOW_HOLIDAYS | wxWANTS_CHARS,
                    const char* name = "calendar");
+    %name(wxPreCalendarCtrl)wxCalendarCtrl();
+
+    bool Create(wxWindow *parent,
+                wxWindowID id,
+                const wxDateTime& date = wxDefaultDateTime,
+                const wxPoint& pos = wxDefaultPosition,
+                const wxSize& size = wxDefaultSize,
+                long style = wxCAL_SHOW_HOLIDAYS | wxWANTS_CHARS,
+                const char* name = "calendar");
 
     // set/get the current date
     // ------------------------
@@ -223,6 +232,12 @@ public:
 
 
 //---------------------------------------------------------------------------
+
+%init %{
+    wxClassInfo::CleanUpClasses();
+    wxClassInfo::InitializeClasses();
+%}
+
 //---------------------------------------------------------------------------
 
 %pragma(python) include="_calextras.py";