mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
Lots of minor tweaks for the pep252 checkins, mainly because Qd
attributes are no longer supported.
This commit is contained in:
parent
202355a333
commit
362c7cd07b
25 changed files with 60 additions and 61 deletions
|
@ -93,7 +93,7 @@ class ICONwindow(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]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue