summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE/Wcontrols.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/Wcontrols.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/Wcontrols.py')
-rw-r--r--Mac/Tools/IDE/Wcontrols.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Mac/Tools/IDE/Wcontrols.py b/Mac/Tools/IDE/Wcontrols.py
index 7add904..1a0fe88 100644
--- a/Mac/Tools/IDE/Wcontrols.py
+++ b/Mac/Tools/IDE/Wcontrols.py
@@ -32,7 +32,7 @@ class ControlWidget(Wbase.ClickableWidget):
self._procID,
0)
self.SetPort()
- #Win.ValidRect(self._bounds)
+ #Win.ValidWindowRect(self._bounds)
self.enable(self._enabled)
def adjust(self, oldbounds):
@@ -43,7 +43,7 @@ class ControlWidget(Wbase.ClickableWidget):
if self._visible:
Qd.EraseRect(self._bounds)
self._control.ShowControl()
- Win.ValidRect(self._bounds)
+ Win.ValidWindowRect(self._bounds)
def close(self):
self._control.HideControl()
@@ -162,8 +162,8 @@ class Button(ControlWidget):
old = Qd.InsetRect(oldbounds, -4, -4)
new = Qd.InsetRect(self._bounds, -4, -4)
Qd.EraseRect(old)
- Win.InvalRect(old)
- Win.InvalRect(new)
+ Win.InvalWindowRect(old)
+ Win.InvalWindowRect(new)
ControlWidget.adjust(self, oldbounds)
@@ -346,7 +346,7 @@ class Scrollbar(ControlWidget):
def adjust(self, oldbounds):
self.SetPort()
- Win.InvalRect(oldbounds)
+ Win.InvalWindowRect(oldbounds)
self._control.HideControl()
self._control.MoveControl(self._bounds[0], self._bounds[1])
self._control.SizeControl(self._bounds[2] - self._bounds[0], self._bounds[3] - self._bounds[1])
@@ -356,7 +356,7 @@ class Scrollbar(ControlWidget):
self._control.ShowControl()
else:
Qd.FrameRect(self._bounds)
- Win.ValidRect(self._bounds)
+ Win.ValidWindowRect(self._bounds)
def activate(self, onoff):
self._activated = onoff
@@ -366,7 +366,7 @@ class Scrollbar(ControlWidget):
else:
self._control.HideControl()
self.draw(None)
- Win.ValidRect(self._bounds)
+ Win.ValidWindowRect(self._bounds)
def set(self, value):
if self._control: