Skip to content

Commit 2e2971c

Browse files
committed
Merge pull request #145 from stonebig/patch-2
Python3 fix in hellloform example (develop)
2 parents e648fa2 + 41375eb commit 2e2971c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

demo/helloform.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import clr
1111
SWF = clr.AddReference("System.Windows.Forms")
12-
print SWF.Location
12+
print (SWF.Location)
1313
import System.Windows.Forms as WinForms
1414
from System.Drawing import Size, Point
1515

@@ -49,7 +49,7 @@ def __init__(self):
4949

5050
def button_Click(self, sender, args):
5151
"""Button click event handler"""
52-
print "Click"
52+
print ("Click")
5353
WinForms.MessageBox.Show("Please do not press this button again.")
5454

5555
def run(self):
@@ -58,9 +58,9 @@ def run(self):
5858

5959
def main():
6060
form = HelloApp()
61-
print "form created"
61+
print ("form created")
6262
app = WinForms.Application
63-
print "app referenced"
63+
print ("app referenced")
6464
app.Run(form)
6565

6666

0 commit comments

Comments
 (0)