summaryrefslogtreecommitdiff
path: root/Mac/Tools/IDE/Wtext.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Tools/IDE/Wtext.py')
-rw-r--r--Mac/Tools/IDE/Wtext.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Mac/Tools/IDE/Wtext.py b/Mac/Tools/IDE/Wtext.py
index 759a9ea1d2..8c1662d598 100644
--- a/Mac/Tools/IDE/Wtext.py
+++ b/Mac/Tools/IDE/Wtext.py
@@ -213,11 +213,11 @@ class EditText(Wbase.SelectableWidget, _ScrollWidget):
def adjust(self, oldbounds):
self.SetPort()
if self._selected and self._parentwindow._hasselframes:
- Win.InvalWindowRect(Qd.InsetRect(oldbounds, -3, -3))
- Win.InvalWindowRect(Qd.InsetRect(self._bounds, -3, -3))
+ self.GetWindow().InvalWindowRect(Qd.InsetRect(oldbounds, -3, -3))
+ self.GetWindow().InvalWindowRect(Qd.InsetRect(self._bounds, -3, -3))
else:
- Win.InvalWindowRect(oldbounds)
- Win.InvalWindowRect(self._bounds)
+ self.GetWindow().InvalWindowRect(oldbounds)
+ self.GetWindow().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.InvalWindowRect(self.ted.WEGetViewRect())
+ #self.GetWindow().InvalWindowRect(self.ted.WEGetViewRect())
self.updatescrollbars()
def get(self):