Skip to content

Commit 3d73abc

Browse files
committed
Made sure Python versions are the same (3.7) between the DLL and the application; changed memo font
1 parent f14a5f6 commit 3d73abc

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

Demos/Demo09/Unit1.dfm

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,26 @@ object Form1: TForm1
2929
Left = 0
3030
Top = 132
3131
Width = 528
32-
Height = 164
32+
Height = 163
3333
Align = alClient
34+
Font.Charset = DEFAULT_CHARSET
35+
Font.Color = clWindowText
36+
Font.Height = -13
37+
Font.Name = 'Consolas'
38+
Font.Pitch = fpVariable
39+
Font.Style = []
3440
Lines.Strings = (
3541
'import sys'
3642
'print (sys.version_info)'
3743
'import demodll'
3844
'print (dir(demodll))'
3945
'print (demodll.add( 2, 2 ))')
46+
ParentFont = False
4047
TabOrder = 1
4148
end
4249
object Panel1: TPanel
4350
Left = 0
44-
Top = 296
51+
Top = 295
4552
Width = 528
4653
Height = 41
4754
Align = alBottom
@@ -64,14 +71,21 @@ object Form1: TForm1
6471
Width = 528
6572
Height = 129
6673
Align = alTop
74+
Font.Charset = DEFAULT_CHARSET
75+
Font.Color = clWindowText
76+
Font.Height = -13
77+
Font.Name = 'Consolas'
78+
Font.Pitch = fpVariable
79+
Font.Style = []
6780
Lines.Strings = (
6881
'')
82+
ParentFont = False
6983
TabOrder = 2
7084
end
7185
object PythonEngine1: TPythonEngine
72-
DllName = 'python32.dll'
86+
DllName = 'python37.dll'
7387
APIVersion = 1013
74-
RegVersion = '3.2'
88+
RegVersion = '3.7'
7589
UseLastKnownVersion = False
7690
IO = PythonGUIInputOutput1
7791
Left = 16

Demos/Demo09/Unit1.pas

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ TForm1 = class(TForm)
2020
PythonGUIInputOutput1: TPythonGUIInputOutput;
2121
Memo2: TMemo;
2222
procedure Button1Click(Sender: TObject);
23-
private
24-
public
2523
end;
2624

2725
var

Demos/Demo09/module.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ function PyInit_demodll : PPyObject;
5151
gEngine := TPythonEngine.Create(nil);
5252
gEngine.AutoFinalize := False;
5353
gEngine.UseLastKnownVersion := False;
54-
gEngine.RegVersion := '3.2'; //<-- Use the same version as the python 3.x your main program uses
54+
gEngine.RegVersion := '3.7'; //<-- Use the same version as the python 3.x your main program uses
5555
gEngine.APIVersion := 1013;
56-
gEngine.DllName := 'python32.dll';
56+
gEngine.DllName := 'python37.dll';
5757
gEngine.LoadDll;
5858
gModule := TPythonModule.Create(nil);
5959
gModule.Engine := gEngine;

0 commit comments

Comments
 (0)