]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_choice.i
Beginings of wxX11 support. Much more to do but I have no more time
[wxWidgets.git] / wxPython / src / _choice.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: _choice.i
3 // Purpose: SWIG interface defs for wxChoice
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 10-June-1998
8 // RCS-ID: $Id$
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
12
13 // Not a %module
14
15
16 //---------------------------------------------------------------------------
17
18 MAKE_CONST_WXSTRING(ChoiceNameStr);
19
20
21 //---------------------------------------------------------------------------
22 %newgroup;
23
24 class wxChoice : public wxControlWithItems
25 {
26 public:
27 %addtofunc wxChoice "self._setOORInfo(self)"
28 %addtofunc wxChoice() ""
29
30 wxChoice(wxWindow *parent, wxWindowID id,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize,
33 int choices=0, wxString* choices_array=NULL,
34 long style = 0,
35 const wxValidator& validator = wxDefaultValidator,
36 const wxString& name = wxPyChoiceNameStr);
37 %name(PreChoice)wxChoice();
38
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 long style = 0,
44 const wxValidator& validator = wxDefaultValidator,
45 const wxString& name = wxPyChoiceNameStr);
46
47 #ifndef __WXX11__
48 int GetColumns();
49 void SetColumns(const int n = 1);
50 #endif
51 void SetSelection(const int n);
52 void SetStringSelection(const wxString& string);
53 void SetString(int n, const wxString& s);
54
55 %pragma(python) addtoclass = "
56 Select = SetSelection
57 "
58 };
59
60 //---------------------------------------------------------------------------