forked from lmbelo/python4delphi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainForm.fmx
More file actions
138 lines (138 loc) · 3.59 KB
/
MainForm.fmx
File metadata and controls
138 lines (138 loc) · 3.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
object Form1: TForm1
Left = 0
Top = 0
Caption = 'Demo of PointF'
ClientHeight = 517
ClientWidth = 640
FormFactor.Width = 320
FormFactor.Height = 480
FormFactor.Devices = [Desktop]
DesignerMasterStyle = 0
object OpenDialog1: TOpenDialog
DefaultExt = '*.py'
Filter = 'Python files|*.py|Text files|*.txt|All files|*.*'
Left = 360
Top = 8
end
object SaveDialog1: TSaveDialog
DefaultExt = '*.py'
Filter = 'Python files|*.py|Text files|*.txt|All files|*.*'
Left = 392
Top = 8
end
object Memo1: TMemo
Touch.InteractiveGestures = [Pan, LongTap, DoubleTap]
DataDetectorTypes = []
Align = Top
Size.Width = 640.000000000000000000
Size.Height = 200.000000000000000000
Size.PlatformDefault = False
TabOrder = 9
Viewport.Width = 636.000000000000000000
Viewport.Height = 196.000000000000000000
end
object Splitter1: TSplitter
Align = Top
Cursor = crVSplit
MinSize = 20.000000000000000000
Position.Y = 200.000000000000000000
Size.Width = 640.000000000000000000
Size.Height = 3.000000000000000000
Size.PlatformDefault = False
end
object Memo2: TMemo
Touch.InteractiveGestures = [Pan, LongTap, DoubleTap]
DataDetectorTypes = []
Lines.Strings = (
'from spam import PointF'
''
'print('#39'-------- Shows wrapped PointF info --------'#39')'
'print(PointF)'
'print(PointF.__doc__)'
'help(PointF)'
''
'print('#39'-------- Creates a new PointF --------'#39')'
''
'p = PointF(2.3, 5.1)'
'print(p)'
'print(p.X)'
'print(p.Y)'
'print(format(p.X, '#39'.2f'#39'))'
'print(format(p.Y, '#39'.2f'#39'))'
''
'print('#39'-------- Updates X and Y values --------'#39')'
''
'p.X = 3.1'
'p.Y = 10.4'
''
'print(p)'
'print(p.X)'
'print(p.Y)'
'print(format(p.X, '#39'.2f'#39'))'
'print(format(p.Y, '#39'.2f'#39'))')
Align = Client
Size.Width = 640.000000000000000000
Size.Height = 269.000000000000000000
Size.PlatformDefault = False
TabOrder = 11
Viewport.Width = 620.000000000000000000
Viewport.Height = 265.000000000000000000
end
object Panel1: TPanel
Align = Bottom
Position.Y = 472.000000000000000000
Size.Width = 640.000000000000000000
Size.Height = 45.000000000000000000
Size.PlatformDefault = False
TabOrder = 12
object Button1: TButton
Position.X = 8.000000000000000000
Position.Y = 10.000000000000000000
Size.Width = 97.000000000000000000
Size.Height = 22.000000000000000000
Size.PlatformDefault = False
TabOrder = 2
Text = 'Execute script'
OnClick = Button1Click
end
object Button2: TButton
Position.X = 192.000000000000000000
Position.Y = 10.000000000000000000
TabOrder = 1
Text = 'Load script...'
OnClick = Button2Click
end
object Button3: TButton
Position.X = 280.000000000000000000
Position.Y = 10.000000000000000000
TabOrder = 0
Text = 'Save script...'
OnClick = Button3Click
end
end
object PythonEngine1: TPythonEngine
IO = PythonGUIInputOutput1
Left = 288
Top = 64
end
object PythonModule1: TPythonModule
Engine = PythonEngine1
ModuleName = 'spam'
Errors = <>
Left = 376
Top = 64
end
object PythonGUIInputOutput1: TPythonGUIInputOutput
UnicodeIO = True
RawOutput = False
Output = Memo1
Left = 352
Top = 112
end
object PyDelphiWrapper1: TPyDelphiWrapper
Engine = PythonEngine1
Module = PythonModule1
Left = 480
Top = 64
end
end