summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE/Wbase.py
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2001-11-18 14:12:43 (GMT)
committerJust van Rossum <just@letterror.com>2001-11-18 14:12:43 (GMT)
commitf376ef0996974c30f608020427fead6edb66877d (patch)
tree35790707ba2d5acde5735c5a4f0e3acf17f2a880 /Mac/Tools/IDE/Wbase.py
parentebbd14d7c208cda1bfc0f169a48a9dcd54a7dcfd (diff)
downloadcpython-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.py12
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()