Sigh... First test before committing. InvalWindowRect and friends are window object methods. Fixed.
diff --git a/Mac/Tools/IDE/Wcontrols.py b/Mac/Tools/IDE/Wcontrols.py
index 1a0fe88..7a88cca 100644
--- a/Mac/Tools/IDE/Wcontrols.py
+++ b/Mac/Tools/IDE/Wcontrols.py
@@ -32,7 +32,7 @@
self._procID,
0)
self.SetPort()
- #Win.ValidWindowRect(self._bounds)
+ #self.GetWindow().ValidWindowRect(self._bounds)
self.enable(self._enabled)
def adjust(self, oldbounds):
@@ -43,7 +43,7 @@
if self._visible:
Qd.EraseRect(self._bounds)
self._control.ShowControl()
- Win.ValidWindowRect(self._bounds)
+ self.GetWindow().ValidWindowRect(self._bounds)
def close(self):
self._control.HideControl()
@@ -162,8 +162,8 @@
old = Qd.InsetRect(oldbounds, -4, -4)
new = Qd.InsetRect(self._bounds, -4, -4)
Qd.EraseRect(old)
- Win.InvalWindowRect(old)
- Win.InvalWindowRect(new)
+ self.GetWindow().InvalWindowRect(old)
+ self.GetWindow().InvalWindowRect(new)
ControlWidget.adjust(self, oldbounds)
@@ -346,7 +346,7 @@
def adjust(self, oldbounds):
self.SetPort()
- Win.InvalWindowRect(oldbounds)
+ self.GetWindow().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 @@
self._control.ShowControl()
else:
Qd.FrameRect(self._bounds)
- Win.ValidWindowRect(self._bounds)
+ self.GetWindow().ValidWindowRect(self._bounds)
def activate(self, onoff):
self._activated = onoff
@@ -366,7 +366,7 @@
else:
self._control.HideControl()
self.draw(None)
- Win.ValidWindowRect(self._bounds)
+ self.GetWindow().ValidWindowRect(self._bounds)
def set(self, value):
if self._control: