X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a72f4631fe5ab7ebeefdacf8ec9c826ea962133f..7a952d4cbdf13ee9bad234f3b08678988c6bba53:/wxPython/src/_radio.i diff --git a/wxPython/src/_radio.i b/wxPython/src/_radio.i index 93a78b647d..972f260c59 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, @@ -61,7 +59,7 @@ public: virtual bool SetStringSelection(const wxString& s); // string access - virtual int GetCount() const; + virtual size_t GetCount() const; virtual int FindString(const wxString& s) const; virtual wxString GetString(int n) const; @@ -70,23 +68,19 @@ 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(unsigned int n, bool enable = true)); + %Rename(ShowItem, virtual void, Show(unsigned int n, bool show = true)); + virtual bool IsItemEnabled(unsigned int n) const; + virtual bool IsItemShown(unsigned int n) const; -#ifndef __WXGTK__ // layout parameters - virtual int GetColumnCount() const; - virtual int GetRowCount() const; + virtual unsigned int GetColumnCount() const; + virtual unsigned int GetRowCount() const; // return the item above/below/to the left/right of the given one int GetNextItem(int item, wxDirection dir, long style) const; -#else - %extend { - int GetColumnCount() const { return -1; } - int GetRowCount() const { return -1; } - 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 +105,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,