pyscripter / python4delphi

Free components that wrap up Python into Delphi and Lazarus (FPC)
MIT License
895 stars 307 forks source link

TPyDelphiStringGrid.SetCell parameters #428

Closed arieldll closed 11 months ago

arieldll commented 11 months ago

Hello Guys,

I was looking for the "WrapVCLGrids" to understand some code and I seem it:

function TPyDelphiStringGrid.SetCell(args: PPyObject): PPyObject;
var
  col, row: integer;
  value: PPyObject;
begin
  with GetPythonEngine do begin
    // adjust the transmitted self argument
    Adjust(@Self);
    if PyArg_ParseTuple( args, 'iiO:GetCell',@col, @row, @value ) <> 0 then
    begin
      DelphiObject.Cells[col, row]:= PyObjectAsString(value);
      result:=ReturnNone;
    end
    else
      Result := nil;
  end;
end;

I think the correct one is iiO:SetCell or I am thinking wrong?