X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/880715c9a941c58e5f702ff340aac7138b27f6ed..31f8e937b872b889f41e363dd2cf07d3ffe32f1d:/wxPython/src/_radio.i?ds=inline diff --git a/wxPython/src/_radio.i b/wxPython/src/_radio.i index c70ce8c11c..275dce10c6 100644 --- a/wxPython/src/_radio.i +++ b/wxPython/src/_radio.i @@ -21,6 +21,8 @@ MAKE_CONST_WXSTRING(RadioButtonNameStr); //--------------------------------------------------------------------------- %newgroup +MustHaveApp(wxRadioBox); + class wxRadioBox : public wxControl { public: @@ -29,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,8 +43,8 @@ public: const wxString& name = wxPyRadioBoxNameStr); %name(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, @@ -94,14 +96,16 @@ public: //--------------------------------------------------------------------------- %newgroup +MustHaveApp(wxRadioButton); + class wxRadioButton : public wxControl { 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, @@ -109,8 +113,8 @@ public: const wxString& name = wxPyRadioButtonNameStr); %name(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,