]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/calendar.i
Added URL drag and drop sample to the wxPython demo
[wxWidgets.git] / wxPython / src / calendar.i
index aeaed635aeabf36d724f1c66b4f7082f07a5e8f8..38dee465fe89ec2b7ef00b91b5d2c3f9099f5eeb 100644 (file)
@@ -155,7 +155,7 @@ 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();
 
@@ -164,9 +164,12 @@ 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");
 
+    %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
+    %pragma(python) addtomethod = "wxPreCalendarCtrl:val._setOORInfo(self)"
+
     // set/get the current date
     // ------------------------