1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface defs for wxChoice
7 // Created: 10-June-1998
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
16 //---------------------------------------------------------------------------
18 MAKE_CONST_WXSTRING(ChoiceNameStr);
20 //---------------------------------------------------------------------------
23 class wxChoice : public wxControlWithItems
26 %pythonAppend wxChoice "self._setOORInfo(self)"
27 %pythonAppend wxChoice() ""
29 wxChoice(wxWindow *parent, wxWindowID id,
30 const wxPoint& pos = wxDefaultPosition,
31 const wxSize& size = wxDefaultSize,
32 //int choices=0, wxString* choices_array=NULL,
33 const wxArrayString& choices = wxPyEmptyStringArray,
35 const wxValidator& validator = wxDefaultValidator,
36 const wxString& name = wxPyChoiceNameStr);
37 %name(PreChoice)wxChoice();
39 bool Create(wxWindow *parent, wxWindowID id,
40 const wxPoint& pos = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize,
42 //int choices=0, wxString* choices_array=NULL,
43 const wxArrayString& choices = wxPyEmptyStringArray,
45 const wxValidator& validator = wxDefaultValidator,
46 const wxString& name = wxPyChoiceNameStr);
50 void SetColumns(const int n = 1);
52 void SetSelection(const int n);
53 void SetStringSelection(const wxString& string);
54 void SetString(int n, const wxString& s);
56 %pragma(python) addtoclass = "
61 //---------------------------------------------------------------------------