summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE/Wbase.py
diff options
context:
space:
mode:
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()