diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-23 14:58:20 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-23 14:58:20 (GMT) |
commit | 73023404369dca5216fc81e1fa21d19a03498a3f (patch) | |
tree | 3c80b0560c8cc0e01a049ab8515a2ed62a69ca41 /Mac/Tools/IDE/Wbase.py | |
parent | 43bb2a4f44bb936cf4d950ee23ccd248276f4b07 (diff) | |
download | cpython-73023404369dca5216fc81e1fa21d19a03498a3f.zip cpython-73023404369dca5216fc81e1fa21d19a03498a3f.tar.gz cpython-73023404369dca5216fc81e1fa21d19a03498a3f.tar.bz2 |
Sigh... First test before committing. InvalWindowRect and friends are window object methods. Fixed.
Diffstat (limited to 'Mac/Tools/IDE/Wbase.py')
-rw-r--r-- | Mac/Tools/IDE/Wbase.py | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/Mac/Tools/IDE/Wbase.py b/Mac/Tools/IDE/Wbase.py index 0a987c6..3c5ab60 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.InvalWindowRect(oldbounds) - Win.InvalWindowRect(self._bounds) + self.GetWindow().InvalWindowRect(oldbounds) + self.GetWindow().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.InvalWindowRect(widget._bounds) + self.GetWindow().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.InvalWindowRect(widget._bounds) + self.GetWindow().InvalWindowRect(widget._bounds) widget.close() del self._widgetsdict[key] self._widgets.remove(widget) @@ -274,7 +274,11 @@ class Widget: def SetPort(self): self._parentwindow.SetPort() - + + + def GetWindow(self): + return self._parentwindow.GetWindow() + def __del__(self): if DEBUG: print "%s instance deleted" % self.__class__.__name__ @@ -340,11 +344,11 @@ class SelectableWidget(ClickableWidget): def adjust(self, oldbounds): self.SetPort() if self._selected: - 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) class _Line(Widget): |