summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE/Wbase.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-01-23 14:34:49 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-01-23 14:34:49 (GMT)
commitd829e9e8e319dfb7f6ac04c4b4b4c25f544064c0 (patch)
tree8aaa4b76c8337b8206caad87be89a70c52f654db /Mac/Tools/IDE/Wbase.py
parentf79cb2db3eae59f80e8031d45376dc5f48d2af04 (diff)
downloadcpython-d829e9e8e319dfb7f6ac04c4b4b4c25f544064c0.zip
cpython-d829e9e8e319dfb7f6ac04c4b4b4c25f544064c0.tar.gz
cpython-d829e9e8e319dfb7f6ac04c4b4b4c25f544064c0.tar.bz2
Replaced InvalRect and friends with the Carbon-compliant InvalWindowRect.
Diffstat (limited to 'Mac/Tools/IDE/Wbase.py')
-rw-r--r--Mac/Tools/IDE/Wbase.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/Mac/Tools/IDE/Wbase.py b/Mac/Tools/IDE/Wbase.py
index e1e71b2..0a987c6 100644
--- a/Mac/Tools/IDE/Wbase.py
+++ b/Mac/Tools/IDE/Wbase.py
@@ -104,8 +104,8 @@ class Widget:
def adjust(self, oldbounds):
self.SetPort()
- Win.InvalRect(oldbounds)
- Win.InvalRect(self._bounds)
+ Win.InvalWindowRect(oldbounds)
+ Win.InvalWindowRect(self._bounds)
def _calcbounds(self):
# calculate absolute bounds relative to the window origin from our
@@ -218,7 +218,7 @@ class Widget:
self._setparentwindow(widget)
if self._parentwindow and self._parentwindow.wid:
widget.forall_frombottom("open")
- Win.InvalRect(widget._bounds)
+ Win.InvalWindowRect(widget._bounds)
def _setparentwindow(self, widget):
widget._parentwindow = self._parentwindow
@@ -235,7 +235,7 @@ class Widget:
widget.select(0)
self._parentwindow._currentwidget = None
self.SetPort()
- Win.InvalRect(widget._bounds)
+ Win.InvalWindowRect(widget._bounds)
widget.close()
del self._widgetsdict[key]
self._widgets.remove(widget)
@@ -340,11 +340,11 @@ class SelectableWidget(ClickableWidget):
def adjust(self, oldbounds):
self.SetPort()
if self._selected:
- 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)
class _Line(Widget):