From 265b7499eb3b3cb422650fafbeb1da7e58831de4 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 21 Feb 2017 17:29:07 -0800 Subject: [PATCH] Remove the auto-convert from wxArrayString to wxPGChoices --- etg/propgridproperty.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/etg/propgridproperty.py b/etg/propgridproperty.py index dfa19fc1..909136b3 100644 --- a/etg/propgridproperty.py +++ b/etg/propgridproperty.py @@ -86,24 +86,6 @@ def run(): body="return self.GetCount()", ) - # Enable auto conversion from wxArrayString - c.convertFromPyObject = """\ - // Code to test a PyObject for compatibility - if (!sipIsErr) { - if (sipCanConvertToType(sipPy, sipType_wxArrayString, 0)) - return TRUE; - return FALSE; - } - - // Code to convert a compatible PyObject - int state = 0; - wxArrayString* arr = reinterpret_cast( - sipConvertToType(sipPy, sipType_wxArrayString, sipTransferObj, 0, &state, sipIsErr)); - *sipCppPtr = new wxPGChoices(arr); - sipReleaseType(arr, sipType_wxArrayString, state); - return sipGetState(sipTransferObj); - """ - # Ignore some string constants (#defines) coming from dox, and add them # back in Python code. They are wchar_t* values and this seemed the