]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_radio.i
PalmOS headers have ssize_t with no sign of it so we have to assume they are always...
[wxWidgets.git] / wxPython / src / _radio.i
index 9a2551def1c88e04af1b403022317219ba06b8fc..d71462cc008766627d913eb19762d88cc9146b66 100644 (file)
@@ -31,8 +31,8 @@ public:
     %pythonAppend  wxRadioBox         "self._setOORInfo(self)"
     %pythonAppend  wxRadioBox()       ""
 
-    wxRadioBox(wxWindow* parent, wxWindowID id,
-               const wxString& label,
+    wxRadioBox(wxWindow* parent, wxWindowID id=-1,
+               const wxString& label = wxPyEmptyString,
                const wxPoint& pos = wxDefaultPosition,
                const wxSize& size = wxDefaultSize,
                //int choices = 0, wxString* choices_array = NULL,
@@ -41,10 +41,10 @@ public:
                long style = wxRA_HORIZONTAL,
                const wxValidator& validator = wxDefaultValidator,
                const wxString& name = wxPyRadioBoxNameStr);
-    %name(PreRadioBox)wxRadioBox();
+    %RenameCtor(PreRadioBox, wxRadioBox());
 
-    bool Create(wxWindow* parent, wxWindowID id,
-                const wxString& label,
+    bool Create(wxWindow* parent, wxWindowID id=-1,
+                const wxString& label = wxPyEmptyString,
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
                 //int choices = 0, wxString* choices_array = NULL,
@@ -70,8 +70,8 @@ public:
     %pythoncode { SetItemLabel = SetString };
 
     // change the individual radio button state
-    %name(EnableItem) virtual void Enable(int n, bool enable = True);
-    %name(ShowItem) virtual void Show(int n, bool show = True);
+    %Rename(EnableItem,  virtual void, Enable(int n, bool enable = true));
+    %Rename(ShowItem,  virtual void, Show(int n, bool show = true));
 
 #ifndef __WXGTK__
     // layout parameters
@@ -104,17 +104,17 @@ public:
     %pythonAppend wxRadioButton         "self._setOORInfo(self)"
     %pythonAppend wxRadioButton()       ""
 
-    wxRadioButton(wxWindow* parent, wxWindowID id,
-                  const wxString& label,
+    wxRadioButton(wxWindow* parent, 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 = wxPyRadioButtonNameStr);
-    %name(PreRadioButton)wxRadioButton();
+    %RenameCtor(PreRadioButton, wxRadioButton());
 
-    bool Create(wxWindow* parent, wxWindowID id,
-                  const wxString& label,
+    bool Create(wxWindow* parent, wxWindowID id=-1,
+                  const wxString& label = wxPyEmptyString,
                   const wxPoint& pos = wxDefaultPosition,
                   const wxSize& size = wxDefaultSize,
                   long style = 0,