]> 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 37aa1781db54980a7634de7d69d73accda5c513f..e2e486942c00fabbe95d94708bac9f54ce03c68c 100644 (file)
 %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,
-                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);
@@ -92,8 +99,8 @@ public:
 
     bool Ok();
 
-    int SendCommand(int cmd, const wxString& param = wxEmptyString);
-    wxWindow* GetEmbeddedWindow();
+    int SendCommand(int cmd, const wxString& param = wxPyEmptyString);
+    wxWindow* GetWidgetWindow();
 
     static wxString GetDllExt();
 };