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/Tools/IDE/Wbase.py | |
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/Tools/IDE/Wbase.py')
-rw-r--r-- | Mac/Tools/IDE/Wbase.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Mac/Tools/IDE/Wbase.py b/Mac/Tools/IDE/Wbase.py index c63aa77..f988ce7 100644 --- a/Mac/Tools/IDE/Wbase.py +++ b/Mac/Tools/IDE/Wbase.py @@ -376,7 +376,7 @@ class VerticalLine(_Line): class Frame(Widget): - def __init__(self, possize, pattern = Qd.qd.black, color = (0, 0, 0)): + def __init__(self, possize, pattern = Qd.GetQDGlobalsBlack(), color = (0, 0, 0)): Widget.__init__(self, possize) self._framepattern = pattern self._framecolor = color @@ -570,7 +570,7 @@ class HorizontalPanes(Widget): # track mouse --- XXX move to separate method? Qd.PenMode(QuickDraw.srcXor) - Qd.PenPat(Qd.qd.gray) + Qd.PenPat(Qd.GetQDGlobalsGray()) Qd.PaintRect(rect) lastpos = None while Evt.Button(): @@ -579,16 +579,16 @@ class HorizontalPanes(Widget): pos = min(pos, maxpos) if pos == lastpos: continue - Qd.PenPat(Qd.qd.gray) + Qd.PenPat(Qd.GetQDGlobalsGray()) Qd.PaintRect(rect) if self._direction: rect = l, pos - 1, r, pos else: rect = pos - 1, t, pos, b - Qd.PenPat(Qd.qd.gray) + Qd.PenPat(Qd.GetQDGlobalsGray()) Qd.PaintRect(rect) lastpos = pos - Qd.QDFlushPortBuffer(self._parentwindow.wid, None) + self._parentwindow.wid.GetWindowPort().QDFlushPortBuffer(None) Evt.WaitNextEvent(0, 3) Qd.PaintRect(rect) Qd.PenNormal() @@ -643,7 +643,7 @@ class ColorPicker(ClickableWidget): if self._visible: if not visRgn: visRgn = self._parentwindow.wid.GetWindowPort().visRgn - Qd.PenPat(Qd.qd.gray) + Qd.PenPat(Qd.GetQDGlobalsGray()) rect = self._bounds Qd.FrameRect(rect) rect = Qd.InsetRect(rect, 3, 3) @@ -700,7 +700,7 @@ def HasBaseClass(obj, class_): # data below. #_cursors = { # "watch" : Qd.GetCursor(QuickDraw.watchCursor).data, -# "arrow" : Qd.qd.arrow, +# "arrow" : Qd.GetQDGlobalsArrow(), # "iBeam" : Qd.GetCursor(QuickDraw.iBeamCursor).data, # "cross" : Qd.GetCursor(QuickDraw.crossCursor).data, # "plus" : Qd.GetCursor(QuickDraw.plusCursor).data, |