# define SWIGEXPORT(a) __declspec(dllexport) a
# else
# if defined(__BORLANDC__)
-# define SWIGEXPORT(a) a _export
+# define SWIGEXPORT(a) a _export
# else
-# define SWIGEXPORT(a) a
+# define SWIGEXPORT(a) a
# endif
# endif
#else
-# define SWIGEXPORT(a) a
+# define SWIGEXPORT(a) a
#endif
+#include "Python.h"
+
#ifdef __cplusplus
extern "C" {
#endif
-#include "Python.h"
+
extern void SWIG_MakePtr(char *, void *, char *);
extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
extern char *SWIG_GetPtr(char *, void **, char *);
#include <wx/clipbrd.h>
#include <wx/dnd.h>
-static PyObject* l_output_helper(PyObject* target, PyObject* o) {
- PyObject* o2;
- if (!target) {
- target = o;
- } else if (target == Py_None) {
- Py_DECREF(Py_None);
- target = o;
- } else {
- if (!PyList_Check(target)) {
- o2 = target;
- target = PyList_New(0);
- PyList_Append(target, o2);
- Py_XDECREF(o2);
- }
- PyList_Append(target,o);
- Py_XDECREF(o);
- }
- return target;
-}
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
PyObject* o2;
PyObject* o3;
- if (!target) {
+ if (!target) {
target = o;
- } else if (target == Py_None) {
+ } else if (target == Py_None) {
Py_DECREF(Py_None);
target = o;
- } else {
+ } else {
if (!PyTuple_Check(target)) {
o2 = target;
target = PyTuple_New(1);
PyTuple_SetItem(target, 0, o2);
}
- o3 = PyTuple_New(1);
- PyTuple_SetItem(o3, 0, o);
+ o3 = PyTuple_New(1);
+ PyTuple_SetItem(o3, 0, o);
o2 = target;
- target = PySequence_Concat(o2, o3);
- Py_DECREF(o2);
+ target = PySequence_Concat(o2, o3);
+ Py_DECREF(o2);
Py_DECREF(o3);
}
return target;
}
-#if PYTHON_API_VERSION >= 1009
- static char* wxStringErrorMsg = "String or Unicode type required";
-#else
- static char* wxStringErrorMsg = "String type required";
-#endif
+ // Put some wx default wxChar* values into wxStrings.
+ static const wxString wxPyEmptyString(wxT(""));
// An alternate constructor...
wxDataFormat* wxCustomDataFormat(const wxString &id) {
return new wxDataFormat(id);
// C++ version.
bool rval = FALSE;
- wxPyTState* state = wxPyBeginBlockThreads();
+ wxPyBeginBlockThreads();
if (m_myInst.findCallback("GetDataHere")) {
PyObject* ro;
ro = m_myInst.callCallbackObj(Py_BuildValue("()"));
Py_DECREF(ro);
}
}
- wxPyEndBlockThreads(state);
+ wxPyEndBlockThreads();
return rval;
}
// For this one we simply need to make a string from buf and len
// and send it to the Python method.
bool rval = FALSE;
- wxPyTState* state = wxPyBeginBlockThreads();
+ wxPyBeginBlockThreads();
if (m_myInst.findCallback("SetData")) {
PyObject* data = PyString_FromStringAndSize((char*)buf, len);
rval = m_myInst.callCallback(Py_BuildValue("(O)", data));
Py_DECREF(data);
}
- wxPyEndBlockThreads(state);
+ wxPyEndBlockThreads();
return rval;
}
// Create a new class for wxPython to use
class wxPyTextDataObject : public wxTextDataObject {
public:
- wxPyTextDataObject(const wxString& text = wxEmptyString)
+ wxPyTextDataObject(const wxString& text = wxPyEmptyString)
: wxTextDataObject(text) {}
DEC_PYCALLBACK_SIZET_(GetTextLength);
wxBitmap wxPyBitmapDataObject::GetBitmap() {
wxBitmap* rval = &wxNullBitmap;
- wxPyTState* state = wxPyBeginBlockThreads();
+ wxPyBeginBlockThreads();
if (m_myInst.findCallback("GetBitmap")) {
PyObject* ro;
wxBitmap* ptr;
Py_DECREF(ro);
}
}
- wxPyEndBlockThreads(state);
+ wxPyEndBlockThreads();
return *rval;
}
void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
- wxPyTState* state = wxPyBeginBlockThreads();
+ wxPyBeginBlockThreads();
if (m_myInst.findCallback("SetBitmap")) {
m_myInst.callCallback(Py_BuildValue("(O)",
wxPyConstructObject((void*)&bitmap, "wxBitmap")));
}
- wxPyEndBlockThreads(state);
+ wxPyEndBlockThreads();
}
// See below in the init function...
bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
const wxArrayString& filenames) {
bool rval = FALSE;
- wxPyTState* state = wxPyBeginBlockThreads();
- PyObject* list = PyList_New(0);
- for (size_t i=0; i<filenames.GetCount(); i++) {
- PyObject* str = PyString_FromString(filenames[i].c_str());
- PyList_Append(list, str);
- }
+ wxPyBeginBlockThreads();
+ PyObject* list = wxArrayString2PyList_helper(filenames);
if (m_myInst.findCallback("OnDropFiles"))
rval = m_myInst.callCallback(Py_BuildValue("(iiO)",x,y,list));
Py_DECREF(list);
- wxPyEndBlockThreads(state);
+ wxPyEndBlockThreads();
return rval;
}
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCustomDataFormat",_kwnames,&_obj0))
return NULL;
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg0 = wxString_in_helper(_obj0);
+ if (_arg0 == NULL)
return NULL;
- }
- if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg0 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj0)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDataFormat *)wxCustomDataFormat(*_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDataFormat *)wxCustomDataFormat(*_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataFormat_p");
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxIsDragResultOk",_kwnames,&_arg0))
return NULL;
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxIsDragResultOk(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxIsDragResultOk(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxDataFormat",_kwnames,&_arg0))
return NULL;
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDataFormat *)new_wxDataFormat(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDataFormat *)new_wxDataFormat(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataFormat_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- delete_wxDataFormat(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ delete_wxDataFormat(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxDataFormat_SetType(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDataFormat_SetType(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDataFormatId )wxDataFormat_GetType(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDataFormatId )wxDataFormat_GetType(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxString (wxDataFormat_GetId(_arg0));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxString (wxDataFormat_GetId(_arg0));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
+#else
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
}
{
delete _result;
static PyObject *_wrap_wxDataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxDataFormat * _arg0;
- char * _arg1;
+ wxString * _arg1;
PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
char *_kwnames[] = { "self","format", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxDataFormat_SetId",_kwnames,&_argo0,&_arg1))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDataFormat_SetId",_kwnames,&_argo0,&_obj1))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxDataFormat_SetId(_arg0,_arg1);
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDataFormat_SetId(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
+{
+ if (_obj1)
+ delete _arg1;
+}
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- delete_wxDataObject(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ delete_wxDataObject(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0,_arg1));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0,_arg1));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxDataFormat_p");
_resultobj = Py_BuildValue("s",_ptemp);
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (size_t )wxDataObject_GetFormatCount(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (size_t )wxDataObject_GetFormatCount(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxDataObject_GetAllFormats(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDataObject_GetAllFormats(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (size_t )wxDataObject_GetDataSize(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (size_t )wxDataObject_GetDataSize(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxDataObject_GetDataHere(_arg0,*_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxDataObject_GetDataHere(_arg0,*_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxDataObject_SetData(_arg0,*_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxDataObject_SetData(_arg0,*_arg1,_arg2,_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxDataObject_IsSupportedFormat(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxDataObject_IsSupportedFormat(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDataObjectSimple *)new_wxDataObjectSimple(*_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDataObjectSimple *)new_wxDataObjectSimple(*_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObjectSimple_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- const wxDataFormat & _result_ref = wxDataObjectSimple_GetFormat(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ const wxDataFormat & _result_ref = wxDataObjectSimple_GetFormat(_arg0);
_result = (wxDataFormat *) &_result_ref;
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataFormat_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxDataObjectSimple_SetFormat(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDataObjectSimple_SetFormat(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyDataObjectSimple *)new_wxPyDataObjectSimple(*_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyDataObjectSimple *)new_wxPyDataObjectSimple(*_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyDataObjectSimple_p");
_arg2 = _obj2;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyDataObjectSimple__setCallbackInfo(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyDataObjectSimple__setCallbackInfo(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxDataObjectComposite",_kwnames))
return NULL;
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDataObjectComposite *)new_wxDataObjectComposite();
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDataObjectComposite *)new_wxDataObjectComposite();
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObjectComposite_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxDataObjectComposite_Add(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDataObjectComposite_Add(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
static PyObject *_wrap_new_wxTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxTextDataObject * _result;
- wxString * _arg0 = (wxString *) &wxEmptyString;
+ wxString * _arg0 = (wxString *) &wxPyEmptyString;
PyObject * _obj0 = 0;
char *_kwnames[] = { "text", NULL };
char _ptemp[128];
return NULL;
if (_obj0)
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg0 = wxString_in_helper(_obj0);
+ if (_arg0 == NULL)
return NULL;
- }
- if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg0 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj0)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxTextDataObject *)new_wxTextDataObject(*_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxTextDataObject *)new_wxTextDataObject(*_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextDataObject_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (size_t )wxTextDataObject_GetTextLength(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (size_t )wxTextDataObject_GetTextLength(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxString (wxTextDataObject_GetText(_arg0));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxString (wxTextDataObject_GetText(_arg0));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
+#else
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
}
{
delete _result;
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxTextDataObject_SetText(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTextDataObject_SetText(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
static PyObject *_wrap_new_wxPyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxPyTextDataObject * _result;
- wxString * _arg0 = (wxString *) &wxEmptyString;
+ wxString * _arg0 = (wxString *) &wxPyEmptyString;
PyObject * _obj0 = 0;
char *_kwnames[] = { "text", NULL };
char _ptemp[128];
return NULL;
if (_obj0)
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
+ _arg0 = wxString_in_helper(_obj0);
+ if (_arg0 == NULL)
return NULL;
- _arg0 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj0)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyTextDataObject *)new_wxPyTextDataObject(*_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyTextDataObject *)new_wxPyTextDataObject(*_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTextDataObject_p");
_arg2 = _obj2;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyTextDataObject__setCallbackInfo(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyTextDataObject__setCallbackInfo(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxBitmapDataObject *)new_wxBitmapDataObject(*_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxBitmapDataObject *)new_wxBitmapDataObject(*_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapDataObject_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
_resultobj = Py_BuildValue("s",_ptemp);
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxBitmapDataObject_SetBitmap(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxBitmapDataObject_SetBitmap(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyBitmapDataObject *)new_wxPyBitmapDataObject(*_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyBitmapDataObject *)new_wxPyBitmapDataObject(*_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyBitmapDataObject_p");
_arg2 = _obj2;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyBitmapDataObject__setCallbackInfo(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyBitmapDataObject__setCallbackInfo(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFileDataObject",_kwnames))
return NULL;
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxFileDataObject *)new_wxFileDataObject();
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxFileDataObject *)new_wxFileDataObject();
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileDataObject_p");
static PyObject * wxFileDataObject_GetFilenames(wxFileDataObject *self) {
const wxArrayString& strings = self->GetFilenames();
- PyObject* list = PyList_New(0);
- for (size_t x=0; x<strings.GetCount(); x++)
- PyList_Append(list, PyString_FromString(strings[x]));
- return list;
+ return wxArrayString2PyList_helper(strings);
}
static PyObject *_wrap_wxFileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (PyObject *)wxFileDataObject_GetFilenames(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (PyObject *)wxFileDataObject_GetFilenames(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{
_resultobj = _result;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxCustomDataObject *)new_wxCustomDataObject(*_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxCustomDataObject *)new_wxCustomDataObject(*_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxCustomDataObject_p");
_arg1 = _obj1;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxCustomDataObject_TakeData(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxCustomDataObject_TakeData(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
_arg1 = _obj1;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxCustomDataObject_SetData(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxCustomDataObject_SetData(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (size_t )wxCustomDataObject_GetSize(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (size_t )wxCustomDataObject_GetSize(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (PyObject *)wxCustomDataObject_GetData(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (PyObject *)wxCustomDataObject_GetData(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{
_resultobj = _result;
return _resultobj;
}
+static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr) {
+ wxURLDataObject *src;
+ wxDataObjectComposite *dest;
+ src = (wxURLDataObject *) ptr;
+ dest = (wxDataObjectComposite *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxURLDataObjectTowxDataObject(void *ptr) {
+ wxURLDataObject *src;
+ wxDataObject *dest;
+ src = (wxURLDataObject *) ptr;
+ dest = (wxDataObject *) src;
+ return (void *) dest;
+}
+
+#define new_wxURLDataObject() (new wxURLDataObject())
+static PyObject *_wrap_new_wxURLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxURLDataObject * _result;
+ char *_kwnames[] = { NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxURLDataObject",_kwnames))
+ return NULL;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxURLDataObject *)new_wxURLDataObject();
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxURLDataObject_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+ return _resultobj;
+}
+
+#define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
+static PyObject *_wrap_wxURLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxString * _result;
+ wxURLDataObject * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxURLDataObject_GetURL",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxURLDataObject_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxString (wxURLDataObject_GetURL(_arg0));
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
+#else
+ _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
+}
+{
+ delete _result;
+}
+ return _resultobj;
+}
+
+#define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
+static PyObject *_wrap_wxURLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxURLDataObject * _arg0;
+ wxString * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","url", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxURLDataObject_SetURL",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxURLDataObject_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxURLDataObject_SetURL(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
static void *SwigwxClipboardTowxObject(void *ptr) {
wxClipboard *src;
wxObject *dest;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxClipboard",_kwnames))
return NULL;
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxClipboard *)new_wxClipboard();
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxClipboard *)new_wxClipboard();
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxClipboard_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxClipboard_Open(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxClipboard_Open(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxClipboard_Close(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxClipboard_Close(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxClipboard_IsOpened(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxClipboard_IsOpened(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxClipboard_AddData(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxClipboard_AddData(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxClipboard_SetData(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxClipboard_SetData(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxClipboard_IsSupported(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxClipboard_IsSupported(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxClipboard_GetData(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxClipboard_GetData(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxClipboard_Clear(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxClipboard_Clear(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxClipboard_Flush(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxClipboard_Flush(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxClipboard_UsePrimarySelection(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxClipboard_UsePrimarySelection(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyDropSource *)new_wxDropSource(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyDropSource *)new_wxDropSource(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyDropSource_p");
_arg2 = _obj2;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxDropSource__setCallbackInfo(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDropSource__setCallbackInfo(_arg0,_arg1,_arg2,_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- delete_wxPyDropSource(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ delete_wxPyDropSource(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxDropSource_SetData(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDropSource_SetData(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDataObject *)wxDropSource_GetDataObject(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDataObject *)wxDropSource_GetDataObject(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObject_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxDropSource_SetCursor(_arg0,_arg1,*_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxDropSource_SetCursor(_arg0,_arg1,*_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDragResult )wxDropSource_DoDragDrop(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDragResult )wxDropSource_DoDragDrop(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxDropSource_base_GiveFeedback(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxDropSource_base_GiveFeedback(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyDropTarget *)new_wxPyDropTarget(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyDropTarget *)new_wxPyDropTarget(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyDropTarget_p");
_arg2 = _obj2;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyDropTarget__setCallbackInfo(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyDropTarget__setCallbackInfo(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- delete_wxPyDropTarget(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ delete_wxPyDropTarget(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDataObject *)wxPyDropTarget_GetDataObject(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDataObject *)wxPyDropTarget_GetDataObject(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObject_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyDropTarget_SetDataObject(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyDropTarget_SetDataObject(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDragResult )wxPyDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDragResult )wxPyDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDragResult )wxPyDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDragResult )wxPyDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyDropTarget_base_OnLeave(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyDropTarget_base_OnLeave(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyDropTarget_base_OnDrop(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyDropTarget_base_OnDrop(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPyDropTarget_GetData(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPyDropTarget_GetData(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTextDropTarget",_kwnames))
return NULL;
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyTextDropTarget *)new_wxTextDropTarget();
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyTextDropTarget *)new_wxTextDropTarget();
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTextDropTarget_p");
_arg2 = _obj2;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxTextDropTarget__setCallbackInfo(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTextDropTarget__setCallbackInfo(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDragResult )wxTextDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDragResult )wxTextDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDragResult )wxTextDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDragResult )wxTextDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxTextDropTarget_base_OnLeave(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxTextDropTarget_base_OnLeave(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxTextDropTarget_base_OnDrop(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxTextDropTarget_base_OnDrop(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDragResult )wxTextDropTarget_base_OnData(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDragResult )wxTextDropTarget_base_OnData(_arg0,_arg1,_arg2,_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFileDropTarget",_kwnames))
return NULL;
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyFileDropTarget *)new_wxFileDropTarget();
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyFileDropTarget *)new_wxFileDropTarget();
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFileDropTarget_p");
_arg2 = _obj2;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxFileDropTarget__setCallbackInfo(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxFileDropTarget__setCallbackInfo(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDragResult )wxFileDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDragResult )wxFileDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDragResult )wxFileDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDragResult )wxFileDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxFileDropTarget_base_OnLeave(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxFileDropTarget_base_OnLeave(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxFileDropTarget_base_OnDrop(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxFileDropTarget_base_OnDrop(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDragResult )wxFileDropTarget_base_OnData(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDragResult )wxFileDropTarget_base_OnData(_arg0,_arg1,_arg2,_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
{ "wxClipboard_Close", (PyCFunction) _wrap_wxClipboard_Close, METH_VARARGS | METH_KEYWORDS },
{ "wxClipboard_Open", (PyCFunction) _wrap_wxClipboard_Open, METH_VARARGS | METH_KEYWORDS },
{ "new_wxClipboard", (PyCFunction) _wrap_new_wxClipboard, METH_VARARGS | METH_KEYWORDS },
+ { "wxURLDataObject_SetURL", (PyCFunction) _wrap_wxURLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
+ { "wxURLDataObject_GetURL", (PyCFunction) _wrap_wxURLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
+ { "new_wxURLDataObject", (PyCFunction) _wrap_new_wxURLDataObject, METH_VARARGS | METH_KEYWORDS },
{ "wxCustomDataObject_GetData", (PyCFunction) _wrap_wxCustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
{ "wxCustomDataObject_GetSize", (PyCFunction) _wrap_wxCustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
{ "wxCustomDataObject_SetData", (PyCFunction) _wrap_wxCustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
*/
static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
{ "_signed_long","_long",0},
- { "_wxBitmapDataObject","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject},
{ "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject},
{ "_wxPrintQuality","_wxCoord",0},
{ "_wxPrintQuality","_int",0},
{ "_wxPrintQuality","_size_t",0},
{ "_wxPrintQuality","_time_t",0},
{ "_byte","_unsigned_char",0},
- { "_wxDataObject","_class_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject},
+ { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject},
{ "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject},
- { "_wxDataObject","_class_wxFileDataObject",SwigwxFileDataObjectTowxDataObject},
{ "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject},
- { "_wxDataObject","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject},
{ "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject},
- { "_wxDataObject","_class_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject},
{ "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject},
- { "_wxDataObject","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject},
{ "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject},
- { "_wxDataObject","_class_wxTextDataObject",SwigwxTextDataObjectTowxDataObject},
{ "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject},
- { "_wxDataObject","_class_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject},
{ "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject},
- { "_wxDataObject","_class_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject},
{ "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject},
- { "_wxDataObject","_class_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject},
{ "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject},
{ "_long","_unsigned_long",0},
{ "_long","_signed_long",0},
- { "_wxDataObjectSimple","_class_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple},
{ "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple},
- { "_wxDataObjectSimple","_class_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple},
{ "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple},
- { "_wxDataObjectSimple","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple},
{ "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple},
- { "_wxDataObjectSimple","_class_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple},
{ "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple},
- { "_wxDataObjectSimple","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple},
{ "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple},
- { "_wxDataObjectSimple","_class_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple},
{ "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple},
- { "_wxDataObjectSimple","_class_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple},
{ "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple},
- { "_class_wxBitmapDataObject","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject},
- { "_class_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject},
- { "_class_wxObject","_class_wxClipboard",SwigwxClipboardTowxObject},
- { "_class_wxObject","_wxClipboard",SwigwxClipboardTowxObject},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_size_t","_time_t",0},
{ "_size_t","_int",0},
{ "_size_t","_wxWindowID",0},
{ "_size_t","_uint",0},
- { "_wxTextDataObject","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject},
{ "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject},
- { "_class_wxDataObject","_class_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject},
- { "_class_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject},
- { "_class_wxDataObject","_class_wxFileDataObject",SwigwxFileDataObjectTowxDataObject},
- { "_class_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject},
- { "_class_wxDataObject","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject},
- { "_class_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject},
- { "_class_wxDataObject","_class_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject},
- { "_class_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject},
- { "_class_wxDataObject","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject},
- { "_class_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject},
- { "_class_wxDataObject","_class_wxTextDataObject",SwigwxTextDataObjectTowxDataObject},
- { "_class_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject},
- { "_class_wxDataObject","_class_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject},
- { "_class_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject},
- { "_class_wxDataObject","_class_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject},
- { "_class_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject},
- { "_class_wxDataObject","_class_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject},
- { "_class_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject},
- { "_class_wxDataObjectSimple","_class_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple},
- { "_class_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple},
- { "_class_wxDataObjectSimple","_class_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple},
- { "_class_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple},
- { "_class_wxDataObjectSimple","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple},
- { "_class_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple},
- { "_class_wxDataObjectSimple","_class_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple},
- { "_class_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple},
- { "_class_wxDataObjectSimple","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple},
- { "_class_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple},
- { "_class_wxDataObjectSimple","_class_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple},
- { "_class_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple},
- { "_class_wxDataObjectSimple","_class_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple},
- { "_class_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple},
{ "_uint","_wxCoord",0},
{ "_uint","_wxPrintQuality",0},
{ "_uint","_time_t",0},
{ "_wxChar","_char",0},
{ "_char","_wxChar",0},
{ "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
- { "_wxDropTarget","_class_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget},
{ "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget},
- { "_wxDropTarget","_class_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget},
{ "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget},
- { "_wxDropTarget","_class_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget},
{ "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget},
{ "_EBool","_wxCoord",0},
{ "_EBool","_wxPrintQuality",0},
{ "_EBool","_signed_int",0},
{ "_EBool","_int",0},
{ "_EBool","_wxWindowID",0},
- { "_class_wxPyDropTarget","_class_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget},
- { "_class_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget},
- { "_class_wxPyDropTarget","_class_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget},
- { "_class_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget},
{ "_unsigned_long","_long",0},
{ "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
{ "_signed_int","_wxCoord",0},
{ "_signed_int","_EBool",0},
{ "_signed_int","_wxWindowID",0},
{ "_signed_int","_int",0},
- { "_class_wxTextDataObject","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject},
- { "_class_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject},
{ "_WXTYPE","_short",0},
{ "_WXTYPE","_signed_short",0},
{ "_WXTYPE","_unsigned_short",0},
- { "_class_wxDropTarget","_class_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget},
- { "_class_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget},
- { "_class_wxDropTarget","_class_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget},
- { "_class_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget},
- { "_class_wxDropTarget","_class_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget},
- { "_class_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget},
{ "_unsigned_short","_WXTYPE",0},
{ "_unsigned_short","_short",0},
- { "_wxObject","_class_wxClipboard",SwigwxClipboardTowxObject},
{ "_wxObject","_wxClipboard",SwigwxClipboardTowxObject},
{ "_signed_short","_WXTYPE",0},
{ "_signed_short","_short",0},
{ "_wxCoord","_size_t",0},
{ "_wxCoord","_time_t",0},
{ "_wxCoord","_wxPrintQuality",0},
- { "_wxPyDropTarget","_class_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget},
+ { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite},
{ "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget},
- { "_wxPyDropTarget","_class_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget},
{ "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget},
{0,0,0}};
PyDict_SetItemString(d,"wxDragNone", PyInt_FromLong((long) wxDragNone));
PyDict_SetItemString(d,"wxDragCopy", PyInt_FromLong((long) wxDragCopy));
PyDict_SetItemString(d,"wxDragMove", PyInt_FromLong((long) wxDragMove));
+ PyDict_SetItemString(d,"wxDragLink", PyInt_FromLong((long) wxDragLink));
PyDict_SetItemString(d,"wxDragCancel", PyInt_FromLong((long) wxDragCancel));