diff options
Diffstat (limited to 'Mac/Demo/PICTbrowse/oldPICTbrowse.py')
-rw-r--r-- | Mac/Demo/PICTbrowse/oldPICTbrowse.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Demo/PICTbrowse/oldPICTbrowse.py b/Mac/Demo/PICTbrowse/oldPICTbrowse.py index dc1f5b4..5f5893c 100644 --- a/Mac/Demo/PICTbrowse/oldPICTbrowse.py +++ b/Mac/Demo/PICTbrowse/oldPICTbrowse.py @@ -46,7 +46,7 @@ class PICTbrowse(FrameWork.Application): def showPICT(self, resid): w = PICTwindow(self) w.open(resid) - #EasyDialogs.Message('Show PICT '+`resid`) + #EasyDialogs.Message('Show PICT %r' % (resid,)) def findPICTresources(self): num = Res.CountResources('PICT') @@ -64,11 +64,11 @@ class PICTbrowse(FrameWork.Application): class PICTwindow(FrameWork.Window): def open(self, (resid, resname)): if not resname: - resname = '#'+`resid` + resname = '#%r' % (resid,) self.resid = resid picture = Qd.GetPicture(self.resid) # Get rect for picture - print `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 width = r-l @@ -104,7 +104,7 @@ class MyDialog(FrameWork.DialogWindow): if self.contents: self.list.LAddRow(len(self.contents), 0) for i in range(len(self.contents)): - v = `self.contents[i][0]` + v = repr(self.contents[i][0]) if self.contents[i][1]: v = v + '"' + self.contents[i][1] + '"' self.list.LSetCell(v, (0, i)) |