@@ -3063,11 +3063,6 @@ class procedure TPyDelphiObject.RegisterGetSets(PythonType: TPythonType);
3063
3063
AddGetSet(' __owned__' , @TPyDelphiObject.Get_Owned, @TPyDelphiObject.Set_Owned,
3064
3064
' Returns True if the wrapper owns the Delphi instance.' , nil );
3065
3065
end ;
3066
-
3067
- { $IFDEF EXPOSE_MEMBERS}
3068
- ExposeFields(DelphiObjectClass, PythonType, PythonType.Owner as TPyDelphiWrapper, true);
3069
- ExposeProperties(DelphiObjectClass, PythonType, PythonType.Owner as TPyDelphiWrapper, true);
3070
- { $ENDIF EXPOSE_MEMBERS}
3071
3066
end ;
3072
3067
3073
3068
class procedure TPyDelphiObject.RegisterMethods (PythonType: TPythonType);
@@ -3090,11 +3085,6 @@ class procedure TPyDelphiObject.RegisterMethods(PythonType: TPythonType);
3090
3085
' If the object is a container (TStrings, TComponent...), it returns the content of the sequence as a Python list object.' );
3091
3086
PythonType.AddMethod(' __dir__' , @TPyDelphiObject.Dir_Wrapper,
3092
3087
' Returns the list of all methods, fields and properties of this instance.' );
3093
-
3094
- { $IFDEF EXPOSE_MEMBERS}
3095
- ExposeMethods(DelphiObjectClass, PythonType,PythonType.Owner as TPyDelphiWrapper,
3096
- true, [], [' CPP_ABI_1' , ' CPP_ABI_2' , ' CPP_ABI_3' ]);
3097
- { $ENDIF EXPOSE_MEMBERS}
3098
3088
end ;
3099
3089
3100
3090
function TPyDelphiObject.Repr : PPyObject;
@@ -3325,6 +3315,11 @@ class procedure TPyDelphiObject.SetupType(PythonType: TPythonType);
3325
3315
// Try to load the class doc string from doc server
3326
3316
if TPythonDocServer.Instance.ReadTypeDocStr(DelphiObjectClass.ClassInfo, LDocStr) then
3327
3317
PythonType.DocString.Text := LDocStr;
3318
+
3319
+ ExposeMethods(DelphiObjectClass, PythonType,PythonType.Owner as TPyDelphiWrapper,
3320
+ true, [], [' CPP_ABI_1' , ' CPP_ABI_2' , ' CPP_ABI_3' ]);
3321
+ ExposeFields(DelphiObjectClass, PythonType, PythonType.Owner as TPyDelphiWrapper, true);
3322
+ ExposeProperties(DelphiObjectClass, PythonType, PythonType.Owner as TPyDelphiWrapper, true);
3328
3323
{ $ENDIF EXPOSE_MEMBERS}
3329
3324
end ;
3330
3325
0 commit comments