@@ -40,7 +40,7 @@ TPyDelphiPoint = class(TPyObject)
4040 function Set_X (AValue : PPyObject; AContext : Pointer) : Integer; cdecl;
4141 function Set_Y (AValue : PPyObject; AContext : Pointer) : Integer; cdecl;
4242 public
43- constructor CreateWith(APythonType: TPythonType; args: PPyObject); override;
43+ constructor CreateWith(APythonType: TPythonType; args, kwds : PPyObject); override;
4444
4545 function Compare ( obj: PPyObject) : Integer; override;
4646 function Repr : PPyObject; override;
@@ -72,7 +72,7 @@ TPyDelphiRect = class(TPyObject)
7272 public
7373 PyDelphiWrapper : TPyDelphiWrapper;
7474
75- constructor CreateWith(APythonType: TPythonType; args: PPyObject); override;
75+ constructor CreateWith(APythonType: TPythonType; args, kwds : PPyObject); override;
7676
7777 function Compare ( obj: PPyObject) : Integer; override;
7878 function Repr : PPyObject; override;
@@ -94,7 +94,7 @@ TPyDelphiSize = class(TPyObject)
9494 function Set_CX (AValue : PPyObject; AContext : Pointer) : Integer; cdecl;
9595 function Set_CY (AValue : PPyObject; AContext : Pointer) : Integer; cdecl;
9696 public
97- constructor CreateWith(APythonType: TPythonType; args: PPyObject); override;
97+ constructor CreateWith(APythonType: TPythonType; args, kwds : PPyObject); override;
9898
9999 function Compare ( obj: PPyObject) : Integer; override;
100100 function Repr : PPyObject; override;
@@ -290,12 +290,12 @@ function TPyDelphiPoint.Compare(obj: PPyObject): Integer;
290290 Result := 1 ;
291291end ;
292292
293- constructor TPyDelphiPoint.CreateWith(APythonType: TPythonType; args:
294- PPyObject);
293+ constructor TPyDelphiPoint.CreateWith(APythonType: TPythonType; args,
294+ kwds: PPyObject);
295295var
296296 x, y : Integer;
297297begin
298- inherited ;
298+ Create(APythonType) ;
299299 if APythonType.Engine.PyArg_ParseTuple( args, ' ii:Create' ,@x, @y ) <> 0 then
300300 begin
301301 fValue.X := x;
@@ -395,9 +395,10 @@ function TPyDelphiRect.Compare(obj: PPyObject): Integer;
395395 Result := 1 ;
396396end ;
397397
398- constructor TPyDelphiRect.CreateWith(APythonType: TPythonType; args: PPyObject);
398+ constructor TPyDelphiRect.CreateWith(APythonType: TPythonType; args,
399+ kwds: PPyObject);
399400begin
400- inherited ;
401+ Create(APythonType) ;
401402 APythonType.Engine.PyArg_ParseTuple( args, ' iiii:Create' ,@fValue.Left, @fValue.Top, @fValue.Right, @fValue.Bottom );
402403end ;
403404
@@ -581,11 +582,11 @@ function TPyDelphiSize.Compare(obj: PPyObject): Integer;
581582 Result := 1 ;
582583end ;
583584
584- constructor TPyDelphiSize.CreateWith(APythonType: TPythonType; args: PPyObject);
585+ constructor TPyDelphiSize.CreateWith(APythonType: TPythonType; args, kwds : PPyObject);
585586var
586587 cx, cy : Integer;
587588begin
588- inherited ;
589+ Create(APythonType) ;
589590 if APythonType.Engine.PyArg_ParseTuple( args, ' ii:Create' ,@cx, @cy ) <> 0 then
590591 begin
591592 fValue.cx := cx;
0 commit comments