X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b9048c56f0aa04b2adbb7813f9698abdda15184..b7aef858828222a05e57671fa01d3cac78aee3ac:/wxPython/src/_radio.i?ds=inline diff --git a/wxPython/src/_radio.i b/wxPython/src/_radio.i index e6974a375f..c70ce8c11c 100644 --- a/wxPython/src/_radio.i +++ b/wxPython/src/_radio.i @@ -24,7 +24,7 @@ MAKE_CONST_WXSTRING(RadioButtonNameStr); class wxRadioBox : public wxControl { public: - %pythonPrepend wxRadioBox "if kwargs.has_key('point'): kwargs['pos'] = kwargs['point']" + %pythonPrepend wxRadioBox "if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point']" %pythonPrepend wxRadioBox() "" %pythonAppend wxRadioBox "self._setOORInfo(self)" %pythonAppend wxRadioBox() "" @@ -33,7 +33,8 @@ public: const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, - int choices = 0, wxString* choices_array = NULL, + //int choices = 0, wxString* choices_array = NULL, + const wxArrayString& choices = wxPyEmptyStringArray, int majorDimension = 0, long style = wxRA_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, @@ -41,14 +42,15 @@ public: %name(PreRadioBox)wxRadioBox(); bool Create(wxWindow* parent, wxWindowID id, - const wxString& label, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - int choices = 0, wxString* choices_array = NULL, - int majorDimension = 0, - long style = wxRA_HORIZONTAL, - const wxValidator& validator = wxDefaultValidator, - const wxString& name = wxPyRadioBoxNameStr); + const wxString& label, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + //int choices = 0, wxString* choices_array = NULL, + const wxArrayString& choices = wxPyEmptyStringArray, + int majorDimension = 0, + long style = wxRA_HORIZONTAL, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxPyRadioBoxNameStr); virtual void SetSelection(int n); virtual int GetSelection() const; @@ -84,6 +86,8 @@ public: } #endif + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); }; @@ -115,6 +119,9 @@ public: bool GetValue(); void SetValue(bool value); + + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); }; //---------------------------------------------------------------------------