]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_choice.i
added wxStaticCast, moved wxConstCast from wx/object.h to wx/defs.h for consistency
[wxWidgets.git] / wxPython / src / _choice.i
CommitLineData
d14a1e28
RD
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
b2dc1044
RD
18MAKE_CONST_WXSTRING(ChoiceNameStr);
19
d14a1e28
RD
20//---------------------------------------------------------------------------
21%newgroup;
22
23class wxChoice : public wxControlWithItems
24{
25public:
2b9048c5
RD
26 %pythonAppend wxChoice "self._setOORInfo(self)"
27 %pythonAppend wxChoice() ""
d14a1e28
RD
28
29 wxChoice(wxWindow *parent, wxWindowID id,
30 const wxPoint& pos = wxDefaultPosition,
31 const wxSize& size = wxDefaultSize,
699e192b
RD
32 //int choices=0, wxString* choices_array=NULL,
33 const wxArrayString& choices = wxPyEmptyStringArray,
d14a1e28
RD
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,
699e192b
RD
40 const wxPoint& pos = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize,
42 //int choices=0, wxString* choices_array=NULL,
43 const wxArrayString& choices = wxPyEmptyStringArray,
44 long style = 0,
45 const wxValidator& validator = wxDefaultValidator,
46 const wxString& name = wxPyChoiceNameStr);
d14a1e28 47
f87da722 48#ifndef __WXX11__
d14a1e28
RD
49 int GetColumns();
50 void SetColumns(const int n = 1);
f87da722 51#endif
d14a1e28
RD
52 void SetSelection(const int n);
53 void SetStringSelection(const wxString& string);
54 void SetString(int n, const wxString& s);
55
56 %pragma(python) addtoclass = "
57 Select = SetSelection
58 "
59};
60
61//---------------------------------------------------------------------------