// Get checkbox value
bool IsChecked() const;
-
+ %pythoncode { Checked = IsChecked }
+
// True if the listbox event was a selection.
bool IsSelection() const;
%extend {
int GetUniChar() {
- #if wxUSE_UNICODE
+ %#if wxUSE_UNICODE
return self->m_uniChar;
- #else
+ %#else
return 0;
- #endif
+ %#endif
}
}
}
for (int i=0; i<count; i++) {
-#if wxUSE_UNICODE
- PyList_SetItem(list, i, PyUnicode_FromWideChar(files[i], files[i].Len()));
-#else
- PyList_SetItem(list, i, PyString_FromString((const char*)files[i]));
-#endif
+ PyList_SetItem(list, i, wx2PyString(files[i]));
}
return list;
}