]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_tglbtn.i
updated Joystick demo, is now wxDesigner-less
[wxWidgets.git] / wxPython / src / _tglbtn.i
index b0eec03e23ff0f85d2c43fe3fa0e93e2c99afea7..2cf934ce844f42779c588451893bce4801a9b12f 100644 (file)
 
 //---------------------------------------------------------------------------
 
-%{
-    wxChar* wxToggleButtonNameStr = _T("wxToggleButton");
-    DECLARE_DEF_STRING(ToggleButtonNameStr);
-%}
+MAKE_CONST_WXSTRING2(ToggleButtonNameStr, _T("wxToggleButton"));
 
 //---------------------------------------------------------------------------
 %newgroup
@@ -36,10 +33,10 @@ public:
     wxToggleButton(wxWindow *, wxWindowID, const wxString&,
                    const wxPoint&, const wxSize&, long,
                    const wxValidator&, const wxString&)
-        { PyErr_SetNone(PyExc_NotImplementedError); }
+        { wxPyRaiseNotImplemented(); }
     
     wxToggleButton()
-        { PyErr_SetNone(PyExc_NotImplementedError); }
+        { wxPyRaiseNotImplemented(); }
 };
 #endif
 %}