//---------------------------------------------------------------------------
-
-#define __version__ "0.0.0" // The real value is now in setup.py...
-
%readonly
wxPoint wxDefaultPosition;
wxSize wxDefaultSize;
wxString GetAppName();
-#ifdef __WXMSW__
- bool GetAuto3D();
-#endif
wxString GetClassName();
bool GetExitOnFrameDelete();
int GetPrintMode();
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);
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 ));
%}