mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +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
|
@ -965,7 +965,7 @@ class PyEditor(TextEditor):
|
|||
if autoscroll:
|
||||
self.ted.WEFeatureFlag(WASTEconst.weFAutoScroll, 0)
|
||||
self.ted.WESetSelection(count, count + 1)
|
||||
Qd.QDFlushPortBuffer(self._parentwindow.wid, None) # needed under OSX
|
||||
self._parentwindow.wid.GetWindowPort().QDFlushPortBuffer(None) # needed under OSX
|
||||
time.sleep(0.2)
|
||||
self.ted.WESetSelection(selstart, selend)
|
||||
if autoscroll:
|
||||
|
@ -1042,7 +1042,7 @@ class PyEditor(TextEditor):
|
|||
breakrect = bl, bt, br, bb = self._getbreakrect()
|
||||
br = br - 1
|
||||
self.SetPort()
|
||||
Qd.PenPat(Qd.qd.gray)
|
||||
Qd.PenPat(Qd.GetQDGlobalsGray())
|
||||
Qd.PaintRect((br, bt, br + 1, bb))
|
||||
Qd.PenNormal()
|
||||
self._parentwindow.tempcliprect(breakrect)
|
||||
|
@ -1123,7 +1123,7 @@ def GetFNum(fontname):
|
|||
GetFName = Fm.GetFontName
|
||||
|
||||
def GetPortFontSettings(port):
|
||||
return Fm.GetFontName(port.txFont), port.txFace, port.txSize
|
||||
return Fm.GetFontName(port.GetPortTextFont()), port.GetPortTextFace(), port.GetPortTextSize()
|
||||
|
||||
def SetPortFontSettings(port, (font, face, size)):
|
||||
saveport = Qd.GetPort()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue