Add sip version to wx.PlatformInfo

This commit is contained in:
Robin Dunn
2018-10-03 16:30:25 -07:00
parent fd1c739e64
commit 59a7550665

View File

@@ -203,6 +203,11 @@ void wxPyCoreModuleInject(PyObject* moduleDict)
_AddInfoString("autoidman");
#endif
wxString sip_version = wxString("sip-") + wxString(SIP_VERSION_STR);
obj = wx2PyString(sip_version);
PyList_Append(PlatformInfo, obj);
Py_DECREF(obj);
#undef _AddInfoString
PyObject* PlatformInfoTuple = PyList_AsTuple(PlatformInfo);