From 59a755066508f41336eba52f94a0c64500cab594 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 3 Oct 2018 16:30:25 -0700 Subject: [PATCH] Add sip version to wx.PlatformInfo --- src/core_ex.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core_ex.cpp b/src/core_ex.cpp index bb6def49..f39b2829 100644 --- a/src/core_ex.cpp +++ b/src/core_ex.cpp @@ -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);