Made the wxInputStream typemap useable outside the core wxc module
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -326,8 +326,15 @@ PyObject* __wxSetDictionary(PyObject* /* self */, PyObject* args)
|
||||
#define wxPlatform "__WXMAC__"
|
||||
#endif
|
||||
|
||||
#ifdef __WXDEBUG__
|
||||
int wxdebug = 1;
|
||||
#else
|
||||
int wxdebug = 0;
|
||||
#endif
|
||||
|
||||
PyDict_SetItemString(wxPython_dict, "wxPlatform", PyString_FromString(wxPlatform));
|
||||
PyDict_SetItemString(wxPython_dict, "wxUSE_UNICODE", PyInt_FromLong(wxUSE_UNICODE));
|
||||
PyDict_SetItemString(wxPython_dict, "__WXDEBUG__", PyInt_FromLong(wxdebug));
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
@@ -826,6 +833,11 @@ wxPyCBInputStream* wxPyCBInputStream::create(PyObject *py, bool block) {
|
||||
return new wxPyCBInputStream(read, seek, tell, block);
|
||||
}
|
||||
|
||||
|
||||
wxPyCBInputStream* wxPyCBInputStream_create(PyObject *py, bool block) {
|
||||
return wxPyCBInputStream::create(py, block);
|
||||
}
|
||||
|
||||
PyObject* wxPyCBInputStream::getMethod(PyObject* py, char* name) {
|
||||
if (!PyObject_HasAttrString(py, name))
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user