}
#include <wx/metafile.h>
-
- // See below in the init function...
- wxClipboard* wxPyTheClipboard;
+extern wxClipboard * wxTheClipboard;
class wxPyDropSource : public wxDropSource {
public:
-#ifdef __WXMSW__
+#ifndef __WXGTK__
wxPyDropSource(wxWindow *win = NULL,
const wxCursor © = wxNullCursor,
const wxCursor &move = wxNullCursor,
return pyobj;
}
-static int _wrap_wxPyTheClipboard_set(PyObject *val) {
+static int _wrap_wxTheClipboard_set(PyObject *val) {
PyErr_SetString(PyExc_TypeError,"Variable wxTheClipboard is read-only.");
return 1;
}
-static PyObject *_wrap_wxPyTheClipboard_get() {
+static PyObject *_wrap_wxTheClipboard_get() {
PyObject * pyobj;
char ptemp[128];
- SWIG_MakePtr(ptemp, (char *) wxPyTheClipboard,"_wxClipboard_p");
+ SWIG_MakePtr(ptemp, (char *) wxTheClipboard,"_wxClipboard_p");
pyobj = PyString_FromString(ptemp);
return pyobj;
}
PyObject * _resultobj;
wxPyDropSource * _result;
wxWindow * _arg0 = (wxWindow *) NULL;
- wxIcon * _arg1 = (wxIcon *) &wxNullIcon;
- wxIcon * _arg2 = (wxIcon *) &wxNullIcon;
- wxIcon * _arg3 = (wxIcon *) &wxNullIcon;
+ wxCursor * _arg1 = (wxCursor *) &wxNullCursor;
+ wxCursor * _arg2 = (wxCursor *) &wxNullCursor;
+ wxCursor * _arg3 = (wxCursor *) &wxNullCursor;
PyObject * _argo0 = 0;
PyObject * _argo1 = 0;
PyObject * _argo2 = 0;
}
}
if (_argo1) {
- if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDropSource. Expected _wxIcon_p.");
+ if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDropSource. Expected _wxCursor_p.");
return NULL;
}
}
if (_argo2) {
- if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxIcon_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxDropSource. Expected _wxIcon_p.");
+ if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxCursor_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxDropSource. Expected _wxCursor_p.");
return NULL;
}
}
if (_argo3) {
- if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxIcon_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxDropSource. Expected _wxIcon_p.");
+ if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxCursor_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxDropSource. Expected _wxCursor_p.");
return NULL;
}
}
PyDict_SetItemString(d,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX));
PyDict_SetItemString(d,"cvar", SWIG_globals);
SWIG_addvarlink(SWIG_globals,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get, _wrap_wxPyFormatInvalid_set);
- SWIG_addvarlink(SWIG_globals,"wxTheClipboard",_wrap_wxPyTheClipboard_get, _wrap_wxPyTheClipboard_set);
+ SWIG_addvarlink(SWIG_globals,"wxTheClipboard",_wrap_wxTheClipboard_get, _wrap_wxTheClipboard_set);
PyDict_SetItemString(d,"wxDrag_CopyOnly", PyInt_FromLong((long) wxDrag_CopyOnly));
PyDict_SetItemString(d,"wxDrag_AllowMove", PyInt_FromLong((long) wxDrag_AllowMove));
PyDict_SetItemString(d,"wxDrag_DefaultMove", PyInt_FromLong((long) wxDrag_DefaultMove));
PyDict_SetItemString(d,"wxDragCancel", PyInt_FromLong((long) wxDragCancel));
- wxPyTheClipboard = wxTheClipboard;
wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");