diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-11-30 00:01:29 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-11-30 00:01:29 (GMT) |
commit | 362c7cd07bd32f94e80e5ca954834cfbc1709953 (patch) | |
tree | 8f929854033e856a2bf29d9167da8c98f754a416 /Mac/Demo/textedit | |
parent | 202355a333b98213449b30dcbfa620be86c96085 (diff) | |
download | cpython-362c7cd07bd32f94e80e5ca954834cfbc1709953.zip cpython-362c7cd07bd32f94e80e5ca954834cfbc1709953.tar.gz cpython-362c7cd07bd32f94e80e5ca954834cfbc1709953.tar.bz2 |
Lots of minor tweaks for the pep252 checkins, mainly because Qd
attributes are no longer supported.
Diffstat (limited to 'Mac/Demo/textedit')
-rw-r--r-- | Mac/Demo/textedit/ped.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Demo/textedit/ped.py b/Mac/Demo/textedit/ped.py index 6a0f882..6666158 100644 --- a/Mac/Demo/textedit/ped.py +++ b/Mac/Demo/textedit/ped.py @@ -21,7 +21,7 @@ class TEWindow(ScrolledWindow): r = windowbounds(400, 400) w = Win.NewWindow(r, name, 1, 0, -1, 1, 0) self.wid = w - x0, y0, x1, y1 = self.wid.GetWindowPort().portRect + x0, y0, x1, y1 = self.wid.GetWindowPort().GetPortBounds() x0 = x0 + 4 y0 = y0 + 4 x1 = x1 - 20 @@ -87,8 +87,8 @@ class TEWindow(ScrolledWindow): self.ted.TEDeactivate() def do_update(self, wid, event): - Qd.EraseRect(wid.GetWindowPort().portRect) - self.ted.TEUpdate(wid.GetWindowPort().portRect) + Qd.EraseRect(wid.GetWindowPort().GetPortBounds()) + self.ted.TEUpdate(wid.GetWindowPort().GetPortBounds()) self.updatescrollbars() def do_contentclick(self, local, modifiers, evt): @@ -350,7 +350,7 @@ class Ped(Application): if self.active: self.active.do_idle() else: - Qd.SetCursor(Qd.qd.arrow) + Qd.SetCursor(Qd.GetQDGlobalsArrow()) def main(): App = Ped() |