X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d55734102e25f5d11bcb4bbac39083320afd3699..3a9becbd5439254a77e7dbc0278d80117a397264:/wxPython/src/_radio.i?ds=inline diff --git a/wxPython/src/_radio.i b/wxPython/src/_radio.i index 275dce10c6..5d5b97c547 100644 --- a/wxPython/src/_radio.i +++ b/wxPython/src/_radio.i @@ -35,19 +35,17 @@ public: const wxString& label = wxPyEmptyString, 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); - %name(PreRadioBox)wxRadioBox(); + %RenameCtor(PreRadioBox, wxRadioBox()); 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, const wxArrayString& choices = wxPyEmptyStringArray, int majorDimension = 0, long style = wxRA_HORIZONTAL, @@ -70,8 +68,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 @@ -87,6 +85,8 @@ public: int GetNextItem(int item, wxDirection dir, long style) const { return -1; } } #endif + +// bool IsValid(int n) const; ** not public static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); @@ -111,7 +111,7 @@ public: long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxPyRadioButtonNameStr); - %name(PreRadioButton)wxRadioButton(); + %RenameCtor(PreRadioButton, wxRadioButton()); bool Create(wxWindow* parent, wxWindowID id=-1, const wxString& label = wxPyEmptyString,