]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_tglbtn.i
Update virtuals to new API
[wxWidgets.git] / wxPython / src / _tglbtn.i
index d3947cc5e373cb652e3baf191a48a7610fe78a8a..05fa6455f30ba1e4714fae30d8150755012d6d2d 100644 (file)
@@ -59,18 +59,18 @@ public:
     %pythonAppend wxToggleButton()       ""
 
     wxToggleButton(wxWindow *parent,
-                   wxWindowID id,
-                   const wxString& label,
+                   wxWindowID id=-1,
+                   const wxString& label = wxPyEmptyString,
                    const wxPoint& pos = wxDefaultPosition,
                    const wxSize& size = wxDefaultSize,
                    long style = 0,
                    const wxValidator& validator = wxDefaultValidator,
                    const wxString& name = wxPyToggleButtonNameStr);
-    %name(PreToggleButton)wxToggleButton();
+    %RenameCtor(PreToggleButton, wxToggleButton());
 
     bool Create(wxWindow *parent,
-                   wxWindowID id,
-                   const wxString& label,
+                   wxWindowID id=-1,
+                   const wxString& label = wxPyEmptyString,
                    const wxPoint& pos = wxDefaultPosition,
                    const wxSize& size = wxDefaultSize,
                    long style = 0,
@@ -83,6 +83,8 @@ public:
 
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+
+    %property(Value, GetValue, SetValue, doc="See `GetValue` and `SetValue`");
 };
 
 //---------------------------------------------------------------------------