X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..f8252483ec03c2623ebb7f7cc6718d10e9468fc2:/wxPython/src/wx.i?ds=sidebyside diff --git a/wxPython/src/wx.i b/wxPython/src/wx.i index 747fa6839e..4f05180037 100644 --- a/wxPython/src/wx.i +++ b/wxPython/src/wx.i @@ -54,9 +54,6 @@ //--------------------------------------------------------------------------- - -#define __version__ "0.0.0" // The real value is now in setup.py... - %readonly wxPoint wxDefaultPosition; wxSize wxDefaultSize; @@ -90,9 +87,6 @@ public: wxString GetAppName(); -#ifdef __WXMSW__ - bool GetAuto3D(); -#endif wxString GetClassName(); bool GetExitOnFrameDelete(); int GetPrintMode(); @@ -109,9 +103,6 @@ public: bool Yield(bool onlyIfNeeded = FALSE); void SetAppName(const wxString& name); -#ifdef __WXMSW__ - void SetAuto3D(bool auto3D); -#endif void SetClassName(const wxString& name); void SetExitOnFrameDelete(bool flag); void SetPrintMode(int mode); @@ -287,17 +278,12 @@ static wxPyCoreAPI API = { initfontsc(); + // Although these are redfined in __version__ they need to be here too so + // that an assert can be done to ensure that the wxPython and the wxWindows + // versions match. PyDict_SetItemString(d,"wxMAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); PyDict_SetItemString(d,"wxMINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); - PyDict_SetItemString(d,"wxRELEASE_NUMBER", PyInt_FromLong((long)wxRELEASE_NUMBER )); - PyDict_SetItemString(d,"wxVERSION_NUMBER", PyInt_FromLong((long)wxVERSION_NUMBER )); -#if wxUSE_UNICODE - wxString tempStr(wxVERSION_STRING); - PyDict_SetItemString(d,"wxVERSION_STRING", PyUnicode_FromWideChar(tempStr.c_str(), tempStr.Len())); -#else - PyDict_SetItemString(d,"wxVERSION_STRING", PyString_FromString(wxVERSION_STRING)); -#endif - + PyDict_SetItemString(d,"wxRELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); %}