summaryrefslogtreecommitdiffstats
path: root/Mac/Demo/PICTbrowse/cicnbrowse.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Demo/PICTbrowse/cicnbrowse.py')
-rw-r--r--Mac/Demo/PICTbrowse/cicnbrowse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Demo/PICTbrowse/cicnbrowse.py b/Mac/Demo/PICTbrowse/cicnbrowse.py
index 561dcf9..b90143e 100644
--- a/Mac/Demo/PICTbrowse/cicnbrowse.py
+++ b/Mac/Demo/PICTbrowse/cicnbrowse.py
@@ -93,7 +93,7 @@ class CIconwindow(FrameWork.Window):
def fitrect(self):
"""Return self.pictrect scaled to fit in window"""
graf = self.wid.GetWindowPort()
- screenrect = graf.portRect
+ screenrect = graf.GetPortBounds()
picwidth = self.pictrect[2] - self.pictrect[0]
picheight = self.pictrect[3] - self.pictrect[1]
if picwidth > screenrect[2] - screenrect[0]: