]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/grid.i
warning fix
[wxWidgets.git] / wxPython / src / grid.i
index aab2af22adde7c890a111f14d07bbfff41ba9047..d5fb58ff435c25502aea1a22c1abc1027a0fab26 100644 (file)
@@ -39,8 +39,7 @@
 
 MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
 MAKE_CONST_WXSTRING_NOSWIG(PanelNameStr);
-MAKE_CONST_WXSTRING2(DateTimeFormatStr, wxT("%c"));
-
+MAKE_CONST_WXSTRING_NOSWIG(DefaultDateTimeFormat);
 
 //---------------------------------------------------------------------------
 // OOR related typemaps and helper functions
@@ -736,8 +735,8 @@ class wxGridCellDateTimeRenderer : public wxGridCellStringRenderer
 {
 public:
     %pythonAppend wxGridCellDateTimeRenderer "self._setOORInfo(self)"
-    wxGridCellDateTimeRenderer(wxString outformat = wxPyDateTimeFormatStr,
-                               wxString informat =  wxPyDateTimeFormatStr);
+    wxGridCellDateTimeRenderer(wxString outformat = wxPyDefaultDateTimeFormat,
+                               wxString informat =  wxPyDefaultDateTimeFormat);
 };
 
 
@@ -1592,6 +1591,8 @@ class wxGrid : public wxScrolledWindow
 {
 public:
     %pythonAppend wxGrid "self._setOORInfo(self)"
+    %pythonAppend wxGrid() ""
+    
     %typemap(out) wxGrid*;    // turn off this typemap
 
     wxGrid( wxWindow *parent,
@@ -1601,7 +1602,7 @@ public:
             long style = wxWANTS_CHARS,
             const wxString& name = wxPyPanelNameStr);
 
-    %name(PreGrid) wxGrid();
+    %RenameCtor(PreGrid,  wxGrid());
 
     
     // Turn it back on again