/usr/include/wx-3.0/wx/wxPython/i_files/_combobox.i is in python-wxgtk3.0-dev 3.0.2.0+dfsg-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | /////////////////////////////////////////////////////////////////////////////
// Name: _combobox.i
// Purpose: SWIG interface defs for wxComboBox
//
// Author: Robin Dunn
//
// Created: 10-June-1998
// RCS-ID: $Id$
// Copyright: (c) 2003 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
// Not a %module
//---------------------------------------------------------------------------
MAKE_CONST_WXSTRING(ComboBoxNameStr);
//---------------------------------------------------------------------------
%newgroup;
DocStr(wxComboBox,
"A combobox is like a combination of an edit control and a
listbox. It can be displayed as static list with editable or
read-only text field; or a drop-down list with text field.
A combobox permits a single selection only. Combobox items are
numbered from zero.", "
Styles
------
================ ===============================================
wx.CB_SIMPLE Creates a combobox with a permanently
displayed list. Windows only.
wx.CB_DROPDOWN Creates a combobox with a drop-down list.
wx.CB_READONLY Same as wxCB_DROPDOWN but only the strings
specified as the combobox choices can be
selected, it is impossible to select
(even from a program) a string which is
not in the choices list.
wx.CB_SORT Sorts the entries in the list alphabetically.
================ ===============================================
Events
-------
================ ===============================================
EVT_COMBOBOX Sent when an item on the list is selected.
Note that calling `GetValue` in this handler
will return the newly selected value.
EVT_TEXT Sent when the combobox text changes.
EVT_TEXT_ENTER Sent when the RETURN/ENTER key is pressed in
the combobox.
================ ===============================================
");
MustHaveApp(wxComboBox);
#ifdef __WXMSW__
class wxComboBox : public wxChoice, public wxTextEntry
#else
class wxComboBox : public wxControl, public wxItemContainer, public wxTextEntry
#endif
{
public:
%pythonAppend wxComboBox "self._setOORInfo(self)"
%pythonAppend wxComboBox() ""
DocCtorAStr(
wxComboBox(wxWindow* parent, wxWindowID id=-1,
const wxString& value = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
const wxArrayString& choices = wxPyEmptyStringArray,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxPyComboBoxNameStr),
"__init__(Window parent, int id=-1, String value=EmptyString,
Point pos=DefaultPosition, Size size=DefaultSize,
List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
String name=ComboBoxNameStr) -> ComboBox",
"Constructor, creates and shows a ComboBox control.", "");
DocCtorStrName(
wxComboBox(),
"Precreate a ComboBox control for 2-phase creation.", "",
PreComboBox);
DocDeclAStr(
bool, Create(wxWindow *parent, wxWindowID id=-1,
const wxString& value = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
const wxArrayString& choices = wxPyEmptyStringArray,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxPyChoiceNameStr),
"Create(Window parent, int id=-1, String value=EmptyString,
Point pos=DefaultPosition, Size size=DefaultSize,
List choices=EmptyList, long style=0, Validator validator=DefaultValidator,
String name=ChoiceNameStr) -> bool",
"Actually create the GUI wxComboBox control for 2-phase creation", "");
DocDeclStr(
void , SetSelection(int n),
"Sets the item at index 'n' to be the selected item.", "");
DocStr(SetMark,
"Selects the text between the two positions in the combobox text field.", "");
%extend {
void SetMark(long from, long to)
{
self->SetSelection(from, to);
}
}
DocDeclAStrName(
virtual void , GetSelection(long* OUTPUT, long* OUTPUT),
"GetMark(self) -> (from, to)",
"Gets the positions of the begining and ending of the selection mark in
the combobox text field.", "",
GetMark);
%extend {
bool IsEmpty() {
return self->wxItemContainer::IsEmpty();
}
}
bool IsListEmpty() const;
bool IsTextEmpty() const;
virtual void Popup();
virtual void Dismiss();
DocDeclStr(
int , GetCurrentSelection() const,
"Unlike `GetSelection` which only returns the accepted selection value,
i.e. the selection in the control once the user closes the dropdown
list, this function returns the current selection. That is, while the
dropdown list is shown, it returns the currently selected item in
it. When it is not shown, its result is the same as for the other
function.", "");
DocDeclStr(
bool , SetStringSelection(const wxString& string),
"Select the item with the specifed string", "");
DocDeclStr(
void , SetString(int n, const wxString& string),
"Set the label for the n'th item (zero based) in the list.", "");
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
%property(CurrentSelection, GetCurrentSelection);
%property(Mark, GetMark, SetMark);
};
//---------------------------------------------------------------------------
|