mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Replaced InvalRect and friends with the Carbon-compliant InvalWindowRect.
This commit is contained in:
parent
f79cb2db3e
commit
d829e9e8e3
15 changed files with 48 additions and 48 deletions
|
@ -157,7 +157,7 @@ class Window(FrameWork.Window, Wbase.SelectableWidget):
|
|||
if y == None:
|
||||
x, y = x
|
||||
self.SetPort()
|
||||
Win.InvalRect(self.getgrowrect())
|
||||
Win.InvalWindowRect(self.getgrowrect())
|
||||
self.wid.SizeWindow(x, y, 1)
|
||||
self._calcbounds()
|
||||
|
||||
|
@ -247,7 +247,7 @@ class Window(FrameWork.Window, Wbase.SelectableWidget):
|
|||
def drawwidgetbounds(self, onoff):
|
||||
self._drawwidgetbounds = onoff
|
||||
self.SetPort()
|
||||
Win.InvalRect(self._bounds)
|
||||
Win.InvalWindowRect(self._bounds)
|
||||
|
||||
def _drawbounds(self):
|
||||
pass
|
||||
|
@ -353,7 +353,7 @@ class Window(FrameWork.Window, Wbase.SelectableWidget):
|
|||
self.draw()
|
||||
|
||||
def do_postresize(self, width, height, window):
|
||||
Win.InvalRect(self.getgrowrect())
|
||||
Win.InvalWindowRect(self.getgrowrect())
|
||||
self._calcbounds()
|
||||
|
||||
def do_inGoAway(self, partcode, window, event):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue