mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Replaced InvalRect and friends with the Carbon-compliant InvalWindowRect.
This commit is contained in:
parent
f79cb2db3e
commit
d829e9e8e3
15 changed files with 48 additions and 48 deletions
|
@ -24,7 +24,7 @@ def main():
|
|||
dummy = Res.GetResource('DLOG', ID_MAIN)
|
||||
except Res.Error:
|
||||
try:
|
||||
Res.OpenResFile("oldPICTbrowse.rsrc")
|
||||
Res.FSpOpenResFile("oldPICTbrowse.rsrc", 0)
|
||||
except Res.Error, arg:
|
||||
EasyDialogs.Message("Cannot open PICTbrowse.rsrc: "+arg[1])
|
||||
sys.exit(1)
|
||||
|
|
|
@ -194,7 +194,7 @@ class WasteWindow(ScrolledWindow):
|
|||
l, t, r, b = self.ted.WEGetViewRect()
|
||||
vr = (l, t, l+width-15, t+height-15)
|
||||
self.ted.WESetViewRect(vr)
|
||||
Win.InvalRect(vr)
|
||||
Win.InvalWindowRect(vr)
|
||||
ScrolledWindow.do_postresize(self, width, height, window)
|
||||
|
||||
def do_contentclick(self, local, modifiers, evt):
|
||||
|
@ -290,7 +290,7 @@ class WasteWindow(ScrolledWindow):
|
|||
self.ted.WESetSelection(start, end)
|
||||
self.ted.WESelView()
|
||||
self.ted.WEFeatureFlag(WASTEconst.weFInhibitRecal, 0)
|
||||
Win.InvalRect(self.ted.WEGetViewRect())
|
||||
Win.InvalWindowRect(self.ted.WEGetViewRect())
|
||||
|
||||
self.updatescrollbars()
|
||||
self.parent.updatemenubar()
|
||||
|
|
|
@ -163,7 +163,7 @@ class WasteWindow(ScrolledWindow):
|
|||
l, t, r, b = self.ted.WEGetViewRect()
|
||||
vr = (l, t, l+width-15, t+height-15)
|
||||
self.ted.WESetViewRect(vr)
|
||||
Win.InvalRect(vr)
|
||||
Win.InvalWindowRect(vr)
|
||||
ScrolledWindow.do_postresize(self, width, height, window)
|
||||
|
||||
def do_contentclick(self, local, modifiers, evt):
|
||||
|
|
|
@ -136,7 +136,7 @@ class WasteWindow(ScrolledWindow):
|
|||
l, t, r, b = self.ted.WEGetViewRect()
|
||||
vr = (l, t, l+width-15, t+height-15)
|
||||
self.ted.WESetViewRect(vr)
|
||||
Win.InvalRect(vr)
|
||||
Win.InvalWindowRect(vr)
|
||||
ScrolledWindow.do_postresize(self, width, height, window)
|
||||
|
||||
def do_contentclick(self, local, modifiers, evt):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue