X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9165401fbedc620814401be5e6d6729dfa59c311..587d0f36148e7d0e77f1e4f6009dcf6785f2b7e4:/wxPython/src/_functions.i?ds=sidebyside diff --git a/wxPython/src/_functions.i b/wxPython/src/_functions.i index 162f51e777..44f8c045d7 100644 --- a/wxPython/src/_functions.i +++ b/wxPython/src/_functions.i @@ -114,6 +114,15 @@ wxString wxGetOsDescription(); // // "All files (*)|*|Image Files (*.jpeg *.png)|*.jpg;*.png" // int wxParseCommonDialogsFilter(const wxString& wildCard, wxArrayString& descriptions, wxArrayString& filters); + +%typemap(out) wxMemorySize { + %#if wxUSE_LONGLONG + $result = PyLong_FromLongLong($1.GetValue()); + %#else + $result = PyInt_FromLong($1); + %#endif +} + #if defined(__WXMSW__) || defined(__WXMAC__) wxMemorySize wxGetFreeMemory(); #else