From d3c2a030bf9397bba61b6acf8983c2f0e776246d Mon Sep 17 00:00:00 2001 From: Reinier Sterkenburg Date: Sun, 4 Oct 2020 08:12:16 +0200 Subject: [PATCH] Made Python 3 compatible --- Demos/Demo07/test.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Demos/Demo07/test.py b/Demos/Demo07/test.py index a42d1743..d374a069 100644 --- a/Demos/Demo07/test.py +++ b/Demos/Demo07/test.py @@ -1,13 +1,13 @@ import sys print "Win version:", sys.winver import spam -print spam.foo('hello world', 1) +print (spam.foo('hello world', 1)) p = spam.CreatePoint( 10, 25 ) -print "Point:", p +print ("Point:", p) p.x = 58 -print p.x, p +print (p.x, p) p.OffsetBy( 5, 5 ) -print p -print "Current value of var test is: ", test +print (p) +print ("Current value of var test is: ", test) test.Value = "New value set by Python" -print spam.getdouble() \ No newline at end of file +print (spam.getdouble()) \ No newline at end of file