X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a97cefbabff29c566c0859d3e735c79a6f3032b6..3a9becbd5439254a77e7dbc0278d80117a397264:/wxPython/src/msw/_misc_wrap.cpp diff --git a/wxPython/src/msw/_misc_wrap.cpp b/wxPython/src/msw/_misc_wrap.cpp index 9e4cd86ee0..067c8b6963 100644 --- a/wxPython/src/msw/_misc_wrap.cpp +++ b/wxPython/src/msw/_misc_wrap.cpp @@ -2382,6 +2382,7 @@ static PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ static const wxString wxPyART_CUT(wxART_CUT); static const wxString wxPyART_PASTE(wxART_PASTE); static const wxString wxPyART_DELETE(wxART_DELETE); + static const wxString wxPyART_NEW(wxART_NEW); static const wxString wxPyART_UNDO(wxART_UNDO); static const wxString wxPyART_REDO(wxART_REDO); static const wxString wxPyART_QUIT(wxART_QUIT); @@ -16479,6 +16480,26 @@ static PyObject *_wrap_ART_DELETE_get(void) { } +static int _wrap_ART_NEW_set(PyObject *) { + PyErr_SetString(PyExc_TypeError,"Variable ART_NEW is read-only."); + return 1; +} + + +static PyObject *_wrap_ART_NEW_get(void) { + PyObject *pyobj; + + { +#if wxUSE_UNICODE + pyobj = PyUnicode_FromWideChar((&wxPyART_NEW)->c_str(), (&wxPyART_NEW)->Len()); +#else + pyobj = PyString_FromStringAndSize((&wxPyART_NEW)->c_str(), (&wxPyART_NEW)->Len()); +#endif + } + return pyobj; +} + + static int _wrap_ART_UNDO_set(PyObject *) { PyErr_SetString(PyExc_TypeError,"Variable ART_UNDO is read-only."); return 1; @@ -33973,6 +33994,7 @@ SWIGEXPORT(void) SWIG_init(void) { SWIG_addvarlink(SWIG_globals,(char*)"ART_CUT",_wrap_ART_CUT_get, _wrap_ART_CUT_set); SWIG_addvarlink(SWIG_globals,(char*)"ART_PASTE",_wrap_ART_PASTE_get, _wrap_ART_PASTE_set); SWIG_addvarlink(SWIG_globals,(char*)"ART_DELETE",_wrap_ART_DELETE_get, _wrap_ART_DELETE_set); + SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW",_wrap_ART_NEW_get, _wrap_ART_NEW_set); SWIG_addvarlink(SWIG_globals,(char*)"ART_UNDO",_wrap_ART_UNDO_get, _wrap_ART_UNDO_set); SWIG_addvarlink(SWIG_globals,(char*)"ART_REDO",_wrap_ART_REDO_get, _wrap_ART_REDO_set); SWIG_addvarlink(SWIG_globals,(char*)"ART_QUIT",_wrap_ART_QUIT_get, _wrap_ART_QUIT_set);