mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +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
|
@ -213,11 +213,11 @@ class EditText(Wbase.SelectableWidget, _ScrollWidget):
|
|||
def adjust(self, oldbounds):
|
||||
self.SetPort()
|
||||
if self._selected and self._parentwindow._hasselframes:
|
||||
Win.InvalRect(Qd.InsetRect(oldbounds, -3, -3))
|
||||
Win.InvalRect(Qd.InsetRect(self._bounds, -3, -3))
|
||||
Win.InvalWindowRect(Qd.InsetRect(oldbounds, -3, -3))
|
||||
Win.InvalWindowRect(Qd.InsetRect(self._bounds, -3, -3))
|
||||
else:
|
||||
Win.InvalRect(oldbounds)
|
||||
Win.InvalRect(self._bounds)
|
||||
Win.InvalWindowRect(oldbounds)
|
||||
Win.InvalWindowRect(self._bounds)
|
||||
viewrect, destrect = self._calctextbounds()
|
||||
self.ted.WESetViewRect(viewrect)
|
||||
self.ted.WESetDestRect(destrect)
|
||||
|
@ -305,7 +305,7 @@ class EditText(Wbase.SelectableWidget, _ScrollWidget):
|
|||
Qd.RectRgn(rgn, viewrect)
|
||||
Qd.EraseRect(viewrect)
|
||||
self.draw(rgn)
|
||||
#Win.InvalRect(self.ted.WEGetViewRect())
|
||||
#Win.InvalWindowRect(self.ted.WEGetViewRect())
|
||||
self.updatescrollbars()
|
||||
|
||||
def get(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue