Einzelnen Beitrag anzeigen

mmw

Registriert seit: 10. Sep 2019
Ort: OWL
324 Beiträge
 
Delphi 11 Alexandria
 
#13

AW: Python im Delphi ausführen (geht nicht)

  Alt 23. Jan 2021, 18:50
Hallo

stimmt, aber hat bis jetzt nicht erhofften Erfolg gehabt.

aktueller stand

Delphi-Quellcode:
procedure TForm1.FormActivate(Sender: TObject);

begin

if PythonEngine1.Initialized then
        PythonEngine1.Finalize

  else begin
    PythonEngine1.DllName:='python38.dll';
    PythonEngine1.DllPath:='d:\delphi10';
    edDllPath.Text:=PythonEngine1.DllPath;
    edDllName.text:=PythonEngine1.DllName;

    PythonEngine1.LoadDll;


end;
end;
klappt ganz gut, das script im exec button functioniert nur aber nur bei dem jeweils neu erzeugten Formular.

Gruß
  Mit Zitat antworten Zitat