]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/dllwidget/dllwidget_.i
In GetPath(), don't append separator if there's already one at the end
[wxWidgets.git] / wxPython / contrib / dllwidget / dllwidget_.i
index 52f4622f6eb286c010fc0976a68478d095826733..e2e486942c00fabbe95d94708bac9f54ce03c68c 100644 (file)
 %extern windows.i
 %extern _defs.i
 
 %extern windows.i
 %extern _defs.i
 
+//----------------------------------------------------------------------
+
+%{
+    // Put some wx default wxChar* values into wxStrings.
+    static const wxString wxPyEmptyString(wxT(""));
+%}
+
 //---------------------------------------------------------------------------
 
 /*
 //---------------------------------------------------------------------------
 
 /*
@@ -82,8 +89,8 @@ class wxDllWidget : public wxPanel
 public:
     wxDllWidget(wxWindow *parent,
                 wxWindowID id = -1,
 public:
     wxDllWidget(wxWindow *parent,
                 wxWindowID id = -1,
-                const wxString& dllName = wxEmptyString,
-                const wxString& className = wxEmptyString,
+                const wxString& dllName = wxPyEmptyString,
+                const wxString& className = wxPyEmptyString,
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
                 long style = 0);
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
                 long style = 0);
@@ -92,7 +99,7 @@ public:
 
     bool Ok();
 
 
     bool Ok();
 
-    int SendCommand(int cmd, const wxString& param = wxEmptyString);
+    int SendCommand(int cmd, const wxString& param = wxPyEmptyString);
     wxWindow* GetWidgetWindow();
 
     static wxString GetDllExt();
     wxWindow* GetWidgetWindow();
 
     static wxString GetDllExt();