const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxValidator& val = wxDefaultValidator,
+ const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxPyCheckBoxNameStr);
%name(wxPreCheckBox)wxCheckBox();
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxValidator& val = wxDefaultValidator,
+ const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxPyCheckBoxNameStr);
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
%pragma(python) addtomethod = "wxPreCheckBox:val._setOORInfo(val)"
bool GetValue();
+ bool IsChecked();
void SetValue(const bool state);
};
//----------------------------------------------------------------------
-// wxGTK's wxComboBox doesn't derive from wxChoice like wxMSW, or
-// even wxControlWithItems, so we have to duplicate the methods
-// here... <blech!>
+// wxGTK's wxComboBox doesn't derive from wxChoice like wxMSW, or even
+// wxControlWithItems, so we have to duplicate the methods here... <blech!>
+// wxMac's inheritace is weird too so we'll fake it with this one too.
-#ifdef __WXGTK__
+#ifndef __WXMSW__
class wxComboBox : public wxControl
{
public:
-#else // For all but wxGTK
-
+#else
+// MSW's version derives from wxChoice
class wxComboBox : public wxChoice {
public:
int FindString(const wxString& string);
wxString GetString(int n);
-
-#ifdef __WXGTK__
- %name(GetItemLabel)wxString GetLabel( int item );
- %name(SetItemLabel)void SetLabel( int item, const wxString& label );
-#else
void SetString(int n, const wxString& label);
%pragma(python) addtoclass = "
GetItemLabel = GetString
SetItemLabel = SetString
"
+#ifndef __WXGTK__
int GetColumnCount();
int GetRowCount();
+ int GetNextItem(int item, wxDirection dir, long style);
#endif
int GetSelection();
int GetValue();
void SetRange(int min, int max);
void SetValue(int value);
-
+#ifdef __WXGTK__
+ %addmethods {
+ void SetSelection(long from, long to) {
+ }
+ }
+#else
+ void SetSelection(long from, long to);
+#endif
};