summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE/Wlists.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-11-30 00:01:29 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-11-30 00:01:29 (GMT)
commit362c7cd07bd32f94e80e5ca954834cfbc1709953 (patch)
tree8f929854033e856a2bf29d9167da8c98f754a416 /Mac/Tools/IDE/Wlists.py
parent202355a333b98213449b30dcbfa620be86c96085 (diff)
downloadcpython-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/Wlists.py')
-rw-r--r--Mac/Tools/IDE/Wlists.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Tools/IDE/Wlists.py b/Mac/Tools/IDE/Wlists.py
index 2be1a9c..4f0e49b 100644
--- a/Mac/Tools/IDE/Wlists.py
+++ b/Mac/Tools/IDE/Wlists.py
@@ -2,7 +2,7 @@ import Wbase
import Wkeys
import string
from Carbon import Evt, Events, Fm, Lists, Qd, Scrap, Win
-from Carbon.List import LNew, CreateCustomList, GetListPort
+from Carbon.List import LNew, CreateCustomList
from Carbon.Lists import kListDefUserProcType, lInitMsg, lDrawMsg, lHiliteMsg, lCloseMsg
from Carbon.QuickDraw import hilitetransfermode
from Carbon import App
@@ -435,7 +435,7 @@ class TwoLineList(CustomList):
def listDefDraw(self, selected, cellRect, theCell,
dataOffset, dataLen, theList):
savedPort = Qd.GetPort()
- Qd.SetPort(GetListPort(theList))
+ Qd.SetPort(theList.GetListPort())
savedClip = Qd.NewRgn()
Qd.GetClip(savedClip)
Qd.ClipRect(cellRect)
@@ -477,7 +477,7 @@ class TwoLineList(CustomList):
def listDefHighlight(self, selected, cellRect, theCell,
dataOffset, dataLen, theList):
savedPort = Qd.GetPort()
- Qd.SetPort(GetListPort(theList))
+ Qd.SetPort(theList.GetListPort())
savedClip = Qd.NewRgn()
Qd.GetClip(savedClip)
Qd.ClipRect(cellRect)