Skip to content

Commit ac92af1

Browse files
committed
Python code now Python 3 compatible; Memo font is now Consolas, size 10
1 parent cdaadd8 commit ac92af1

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

Demos/Demo25/fmMain.dfm

+16-2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ object Main: TMain
3232
Width = 753
3333
Height = 249
3434
Align = alTop
35+
Font.Charset = DEFAULT_CHARSET
36+
Font.Color = clWindowText
37+
Font.Height = -13
38+
Font.Name = 'Consolas'
39+
Font.Pitch = fpVariable
40+
Font.Style = []
41+
ParentFont = False
3542
ScrollBars = ssVertical
3643
TabOrder = 0
3744
end
@@ -234,6 +241,12 @@ object Main: TMain
234241
Width = 753
235242
Height = 166
236243
Align = alClient
244+
Font.Charset = DEFAULT_CHARSET
245+
Font.Color = clWindowText
246+
Font.Height = -13
247+
Font.Name = 'Consolas'
248+
Font.Pitch = fpVariable
249+
Font.Style = []
237250
Lines.Strings = (
238251
'class XYZ(object):'
239252
' pass'
@@ -242,7 +255,7 @@ object Main: TMain
242255
' def __init__(Self, Value=0):'
243256
' Self.Value = Value'
244257
' def __del__(Self):'
245-
' print "delete", Self'
258+
' print ("delete", Self)'
246259
' def __add__(self, other):'
247260
' return Foo(self.Value + other.Value)'
248261
' def Inc(Self, AValue = 1):'
@@ -266,12 +279,13 @@ object Main: TMain
266279
' return [a, b, c, d]'
267280
''
268281
'f = Foo()'
269-
'print "Created", f'
282+
'print ("Created", f)'
270283
'f.Inc()'
271284
'f.Inc(2)'
272285
'b = Bar()'
273286
'b.Inc()'
274287
'b.Inc(2)')
288+
ParentFont = False
275289
ScrollBars = ssVertical
276290
TabOrder = 2
277291
end

0 commit comments

Comments
 (0)