diff options
author | Just van Rossum <just@letterror.com> | 2001-11-18 14:12:43 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2001-11-18 14:12:43 (GMT) |
commit | f376ef0996974c30f608020427fead6edb66877d (patch) | |
tree | 35790707ba2d5acde5735c5a4f0e3acf17f2a880 /Mac/Tools/IDE/Wbase.py | |
parent | ebbd14d7c208cda1bfc0f169a48a9dcd54a7dcfd (diff) | |
download | cpython-f376ef0996974c30f608020427fead6edb66877d.zip cpython-f376ef0996974c30f608020427fead6edb66877d.tar.gz cpython-f376ef0996974c30f608020427fead6edb66877d.tar.bz2 |
a whole bunch of OSX tweaks
Diffstat (limited to 'Mac/Tools/IDE/Wbase.py')
-rw-r--r-- | Mac/Tools/IDE/Wbase.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Mac/Tools/IDE/Wbase.py b/Mac/Tools/IDE/Wbase.py index be75d8a..8019d06 100644 --- a/Mac/Tools/IDE/Wbase.py +++ b/Mac/Tools/IDE/Wbase.py @@ -1,4 +1,4 @@ -from Carbon import Evt, Qd, QuickDraw, Win +from Carbon import App, Evt, Qd, QuickDraw, Win import string from types import * import sys @@ -329,15 +329,7 @@ class SelectableWidget(ClickableWidget): def drawselframe(self, onoff): if not self._parentwindow._hasselframes: return - thickrect = Qd.InsetRect(self._bounds, -3, -3) - state = Qd.GetPenState() - Qd.PenSize(2, 2) - if onoff: - Qd.PenPat(Qd.qd.black) - else: - Qd.PenPat(Qd.qd.white) - Qd.FrameRect(thickrect) - Qd.SetPenState(state) + App.DrawThemeFocusRect(self._bounds, onoff) def adjust(self, oldbounds): self.SetPort() |