File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ def run():
125
125
c2py = """\
126
126
ret = []
127
127
array = ffi.cast('int*', cdata.array)
128
- for i in range(cdata):
128
+ for i in range(cdata.length ):
129
129
ret.append(array[i])
130
130
131
131
clib.free(cdata.array)
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def run():
28
28
name = 'wxClientData' , cType = 'void*' ,
29
29
py2c = """\
30
30
with wrapper_lib.get_refcounted_handle(py_obj) as handle:
31
- return ( clib.new_wxPyClientData(handle), None )
31
+ return clib.new_wxPyClientData(handle)
32
32
""" ,
33
33
c2cpp = "return (wxPyClientData*)cdata;" ,
34
34
cpp2c = "return ((wxPyClientData*)cpp_obj)->get_handle();" ,
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def run():
44
44
set .ignore ()
45
45
46
46
c .find ('GetSelections' ).type = 'wxArrayInt*'
47
- c .find ('GetSelections' ).factory = True # a new instance is being created
47
+ c .find ('GetSelections' ).factory = False # We return a list
48
48
c .find ('GetSelections.selections' ).ignore ()
49
49
c .find ('GetSelections' ).setCppCode ("""\
50
50
wxArrayInt* array = new wxArrayInt;
You can’t perform that action at this time.
0 commit comments