forked from lmbelo/python4delphi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUnit1.dfm
More file actions
175 lines (175 loc) · 3.97 KB
/
Unit1.dfm
File metadata and controls
175 lines (175 loc) · 3.97 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
object Form1: TForm1
Left = 241
Top = 155
Width = 597
Height = 557
VertScrollBar.Range = 200
ActiveControl = Button1
Caption = 'Demo of Python'
Color = clBackground
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = 11
Font.Name = 'MS Sans Serif'
Font.Pitch = fpVariable
Font.Style = []
OldCreateOrder = True
PixelsPerInch = 96
TextHeight = 13
object Splitter1: TSplitter
Left = 0
Top = 209
Width = 581
Height = 3
Cursor = crVSplit
Align = alTop
Color = clBtnFace
ParentColor = False
ExplicitWidth = 589
end
object Memo1: TMemo
Left = 0
Top = 212
Width = 581
Height = 262
Align = alClient
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'Consolas'
Font.Pitch = fpVariable
Font.Style = []
Lines.Strings = (
'import p4d'
'L = p4d.CreateTStringList(1, 2, 3, 4)'
'print (L)'
'for i in L:'
' print (i, type(i))'
''
'i = iter(L)'
'print (i)'
'try:'
' while True:'
' print (i.next())'
'except StopIteration:'
' print ("Done")'
''
'print (L[2])'
'L[2] = int(L[2]) * 2'
'print (L[2], type(L[2]))'
'print (L[ L.add(10) ])')
ParentFont = False
ScrollBars = ssBoth
TabOrder = 1
end
object Panel1: TPanel
Left = 0
Top = 474
Width = 581
Height = 44
Align = alBottom
BevelOuter = bvNone
TabOrder = 0
object Button1: TButton
Left = 6
Top = 8
Width = 115
Height = 25
Caption = 'Execute script'
TabOrder = 0
OnClick = Button1Click
end
object Button2: TButton
Left = 168
Top = 8
Width = 91
Height = 25
Caption = 'Load script...'
TabOrder = 1
OnClick = Button2Click
end
object Button3: TButton
Left = 264
Top = 8
Width = 89
Height = 25
Caption = 'Save script...'
TabOrder = 2
OnClick = Button3Click
end
end
object Memo2: TMemo
Left = 0
Top = 0
Width = 581
Height = 209
Align = alTop
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'Consolas'
Font.Pitch = fpVariable
Font.Style = []
ParentFont = False
ScrollBars = ssBoth
TabOrder = 2
end
object PythonEngine1: TPythonEngine
IO = PythonGUIInputOutput1
Left = 32
end
object OpenDialog1: TOpenDialog
DefaultExt = '*.py'
Filter = 'Python files|*.py|Text files|*.txt|All files|*.*'
Title = 'Open'
Left = 176
end
object SaveDialog1: TSaveDialog
DefaultExt = '*.py'
Filter = 'Python files|*.py|Text files|*.txt|All files|*.*'
Title = 'Save As'
Left = 208
end
object PythonGUIInputOutput1: TPythonGUIInputOutput
UnicodeIO = True
RawOutput = False
Output = Memo2
Left = 64
end
object ptStringList: TPythonType
Engine = PythonEngine1
OnCreate = ptStringListCreate
TypeName = 'TStringList'
TypeFlags = [tpfHaveGetCharBuffer, tpfHaveSequenceIn, tpfHaveInplaceOps, tpfHaveRichCompare, tpfHaveWeakRefs, tpfHaveIter, tpfHaveClass, tpfBaseType]
Prefix = 'Create'
Module = pmP4D
Services.Basic = [bsGetAttr, bsSetAttr, bsRepr, bsStr, bsIter]
Services.InplaceNumber = []
Services.Number = []
Services.Sequence = [ssLength, ssItem, ssAssItem]
Services.Mapping = []
Left = 64
Top = 48
end
object pmP4D: TPythonModule
Engine = PythonEngine1
ModuleName = 'p4d'
Errors = <>
Left = 32
Top = 48
end
object ptStringListIterator: TPythonType
Engine = PythonEngine1
OnCreate = ptStringListIteratorCreate
TypeName = 'TStringListIterator'
Prefix = 'Create'
Module = pmP4D
Services.Basic = [bsGetAttr, bsSetAttr, bsRepr, bsStr, bsIter, bsIterNext]
Services.InplaceNumber = []
Services.Number = []
Services.Sequence = []
Services.Mapping = []
Left = 64
Top = 80
end
end