summaryrefslogtreecommitdiffstats
path: root/Mac/Demo/PICTbrowse/oldPICTbrowse.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Demo/PICTbrowse/oldPICTbrowse.py')
-rw-r--r--Mac/Demo/PICTbrowse/oldPICTbrowse.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Demo/PICTbrowse/oldPICTbrowse.py b/Mac/Demo/PICTbrowse/oldPICTbrowse.py
index 8600bb2..2c6f08b 100644
--- a/Mac/Demo/PICTbrowse/oldPICTbrowse.py
+++ b/Mac/Demo/PICTbrowse/oldPICTbrowse.py
@@ -68,9 +68,9 @@ class PICTwindow(FrameWork.Window):
self.resid = resid
picture = Qd.GetPicture(self.resid)
# Get rect for picture
- print repr(picture.data[:16])
+ print(repr(picture.data[:16]))
sz, t, l, b, r = struct.unpack('hhhhh', picture.data[:10])
- print 'pict:', t, l, b, r
+ print('pict:', t, l, b, r)
width = r-l
height = b-t
if width < 64: width = 64
@@ -78,7 +78,7 @@ class PICTwindow(FrameWork.Window):
if height < 64: height = 64
elif height > 320: height = 320
bounds = (LEFT, TOP, LEFT+width, TOP+height)
- print 'bounds:', bounds
+ print('bounds:', bounds)
self.wid = Win.NewWindow(bounds, resname, 1, 0, -1, 1, 0)
self.wid.SetWindowPic(picture)
@@ -115,7 +115,7 @@ class MyDialog(FrameWork.DialogWindow):
(what, message, when, where, modifiers) = event
Qd.SetPort(self.wid)
where = Qd.GlobalToLocal(where)
- print 'LISTHIT', where
+ print('LISTHIT', where)
if self.list.LClick(where, modifiers):
self.do_show()