X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94eaeb1b023260de3b9016a3215aa8260acef93c..32bf5e4a38676c7b5997c9cc27cdf44adeb7b6b5:/wxPython/src/_radio.i diff --git a/wxPython/src/_radio.i b/wxPython/src/_radio.i index 4e4dde6728..93a78b647d 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, @@ -68,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); + %name(EnableItem) virtual void Enable(int n, bool enable = true); + %name(ShowItem) virtual void Show(int n, bool show = true); #ifndef __WXGTK__ // layout parameters @@ -86,20 +88,24 @@ public: } #endif + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); }; //--------------------------------------------------------------------------- %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, @@ -107,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, @@ -117,6 +123,9 @@ public: bool GetValue(); void SetValue(bool value); + + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); }; //---------------------------------------------------------------------------