diff options
Diffstat (limited to 'Mac/Demo/PICTbrowse/PICTbrowse2.py')
-rw-r--r-- | Mac/Demo/PICTbrowse/PICTbrowse2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Demo/PICTbrowse/PICTbrowse2.py b/Mac/Demo/PICTbrowse/PICTbrowse2.py index 0e11681..da389c0 100644 --- a/Mac/Demo/PICTbrowse/PICTbrowse2.py +++ b/Mac/Demo/PICTbrowse/PICTbrowse2.py @@ -93,7 +93,7 @@ class PICTwindow(FrameWork.Window): def fitrect(self): """Return self.pictrect scaled to fit in window""" graf = self.dlg.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]: |