git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38668
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// works for single as well as multiple selection listboxes (unlike
// GetSelection which only works for listboxes with single selection)
//virtual int GetSelections(wxArrayInt& aSelections) const;
// works for single as well as multiple selection listboxes (unlike
// GetSelection which only works for listboxes with single selection)
//virtual int GetSelections(wxArrayInt& aSelections) const;
- %extend
- {
- PyObject* GetSelections()
- {
+ %extend {
+ PyObject* GetSelections() {
+ wxPyBlock_t blocked = wxPyBeginBlockThreads();
wxArrayInt lst;
self->GetSelections(lst);
PyObject *tup = PyTuple_New(lst.GetCount());
wxArrayInt lst;
self->GetSelections(lst);
PyObject *tup = PyTuple_New(lst.GetCount());
{
PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
}
{
PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
}
+ wxPyEndBlockThreads(blocked);