Skip to content

Commit 61fa702

Browse files
committed
Changes in the documentation of the unit.
1 parent 7303bb1 commit 61fa702

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

PythonForDelphi/Components/Sources/Core/WrapDelphi.pas

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ TPyDelphiWrapper = class;
356356
357357
TMyClass = class(TInterfacedObject, IFreeNotification)
358358
private
359-
fFreeNotifImpl : TFreeNotificationImpl;
359+
fFreeNotifImpl : IFreeNotification;
360360
protected
361361
property FreeNotifImpl : IFreeNotification read fFreeNotifImpl implements IFreeNotification;
362362
public
@@ -738,9 +738,9 @@ TRegisteredUnits = class
738738

739739
{
740740
The main component of this unit.
741-
Method TObjectToPyObject wraps Delphi objects into Python objects
742-
Method RegisterDelphiClass can be used to extend its functionality.
743-
Method RegisterEventHandler can be used to add event handling functionality
741+
Method Wrap wraps Delphi objects into Python objects
742+
Method RegisterDelphiWrapper can be used to extend its functionality.
743+
Method EventHandlers.RegisterHandler can be used to add event handling functionality
744744
}
745745
{$IF not Defined(FPC) and (CompilerVersion >= 23)}
746746
[ComponentPlatformsAttribute(pidWin32 or pidWin64)]
@@ -2951,7 +2951,7 @@ function TPyDelphiWrapper.Wrap(AObj: TObject;
29512951
if Index >= 0 then break;
29522952
DelphiClass := DelphiClass.ClassParent;
29532953
end;
2954-
Assert(Index >= 0, 'Internal Error in PyDelphiWrapper.TObjectToPyObject'); // shouldn't happen
2954+
Assert(Index >= 0, 'Internal Error in PyDelphiWrapper.Wrap'); // shouldn't happen
29552955

29562956
Result := TRegisteredClass(fClassRegister[Index]).PythonType.CreateInstance;
29572957
with PythonToDelphi(Result) as TPyDelphiObject do begin

0 commit comments

Comments
 (0)