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 //---------------------------------------------------------------------------
19 DECLARE_DEF_STRING(ChoiceNameStr);
22 //---------------------------------------------------------------------------
25 class wxChoice : public wxControlWithItems
28 %addtofunc wxChoice "self._setOORInfo(self)"
29 %addtofunc wxChoice() ""
31 wxChoice(wxWindow *parent, wxWindowID id,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
34 int choices=0, wxString* choices_array=NULL,
36 const wxValidator& validator = wxDefaultValidator,
37 const wxString& name = wxPyChoiceNameStr);
38 %name(PreChoice)wxChoice();
40 bool Create(wxWindow *parent, wxWindowID id,
41 const wxPoint& pos = wxDefaultPosition,
42 const wxSize& size = wxDefaultSize,
43 int choices=0, wxString* choices_array=NULL,
45 const wxValidator& validator = wxDefaultValidator,
46 const wxString& name = wxPyChoiceNameStr);
49 void SetColumns(const int n = 1);
50 void SetSelection(const int n);
51 void SetStringSelection(const wxString& string);
52 void SetString(int n, const wxString& s);
54 %pragma(python) addtoclass = "
59 //---------------------------------------------------------------------------