mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
Lots of minor tweaks for the pep252 checkins, mainly because Qd
attributes are no longer supported.
This commit is contained in:
parent
202355a333
commit
362c7cd07b
25 changed files with 60 additions and 61 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue