Fixed a typemap.

Added a Python list --> wxArrayInt typemap and wxArrayInt --> Python
list helper.

Added wxMultiChoiceDialog.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-01-21 21:33:07 +00:00
parent c9baf9d738
commit 293a0a8677
15 changed files with 359 additions and 20 deletions

View File

@@ -132,7 +132,30 @@ public:
//----------------------------------------------------------------------
//TODO: wxMultipleChoiceDialog
enum { wxCHOICEDLG_STYLE };
class wxMultiChoiceDialog : public wxDialog
{
public:
wxMultiChoiceDialog(wxWindow *parent,
const wxString& message,
const wxString& caption,
int LCOUNT, wxString *choices,
long style = wxCHOICEDLG_STYLE,
const wxPoint& pos = wxDefaultPosition);
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
void SetSelections(const wxArrayInt& selections);
// wxArrayInt GetSelections() const;
%addmethods {
PyObject* GetSelections() {
return wxArrayInt2PyList_helper(self->GetSelections());
}
}
};
//----------------------------------------------------------------------
@@ -146,7 +169,7 @@ public:
wxString* caption,
int LCOUNT, wxString* choices,
//char** clientData = NULL,
long style = wxOK | wxCANCEL | wxCENTRE,
long style = wxCHOICEDLG_STYLE,
wxPoint* pos = &wxDefaultPosition) {
return new wxSingleChoiceDialog(parent, *message, *caption,
LCOUNT, choices, NULL, style, *pos);