summaryrefslogtreecommitdiffstats
path: root/Mac/Demo/PICTbrowse
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-04-10 14:53:29 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-04-10 14:53:29 (GMT)
commit8494967f77ffd030eed940209f9d111c5fe2765e (patch)
tree2f920d0cea135ffa537ac1a7c37979d4e149b603 /Mac/Demo/PICTbrowse
parent5f962c2a75a09bd9e35f32c0250abcfd8c738154 (diff)
downloadcpython-8494967f77ffd030eed940209f9d111c5fe2765e.zip
cpython-8494967f77ffd030eed940209f9d111c5fe2765e.tar.gz
cpython-8494967f77ffd030eed940209f9d111c5fe2765e.tar.bz2
Added a region arg to update calls
Diffstat (limited to 'Mac/Demo/PICTbrowse')
-rw-r--r--Mac/Demo/PICTbrowse/PICTbrowse.py4
-rw-r--r--Mac/Demo/PICTbrowse/PICTbrowse.rsrc.hqx4
-rw-r--r--Mac/Demo/PICTbrowse/PICTbrowse2.py4
3 files changed, 6 insertions, 6 deletions
diff --git a/Mac/Demo/PICTbrowse/PICTbrowse.py b/Mac/Demo/PICTbrowse/PICTbrowse.py
index a84a7d5..4aabf67 100644
--- a/Mac/Demo/PICTbrowse/PICTbrowse.py
+++ b/Mac/Demo/PICTbrowse/PICTbrowse.py
@@ -115,7 +115,7 @@ class MyDialog(FrameWork.DialogWindow):
v = v + '"' + self.contents[i][1] + '"'
self.list.LSetCell(v, (0, i))
self.list.LSetDrawingMode(1)
- self.list.LUpdate()
+ self.list.LUpdate(self.wid.GetWindowPort().visRgn)
def do_listhit(self, event):
(what, message, when, where, modifiers) = event
@@ -148,7 +148,7 @@ class MyDialog(FrameWork.DialogWindow):
tp, h, rect = self.wid.GetDialogItem(MAIN_LIST)
Qd.SetPort(self.wid)
Qd.FrameRect(rect)
- self.list.LUpdate()
+ self.list.LUpdate(self.wid.GetWindowPort().visRgn)
def do_activate(self, activate, event):
self.list.LActivate(activate)
diff --git a/Mac/Demo/PICTbrowse/PICTbrowse.rsrc.hqx b/Mac/Demo/PICTbrowse/PICTbrowse.rsrc.hqx
index 7f0f575..a332276 100644
--- a/Mac/Demo/PICTbrowse/PICTbrowse.rsrc.hqx
+++ b/Mac/Demo/PICTbrowse/PICTbrowse.rsrc.hqx
@@ -2,9 +2,9 @@
:$e"*3e4LFQphFf8ZFR0bB`"bFh*M8P0&4!#3#!'8,V!!N!3"!!!!!6m!!!!r!!!
!9G'"(r!!q[m!!2Vr!!$kf!!!qYJ!!2VB!!$kf!!!q[qJ$e"*3e4LFQphFf8ZFR0
-bB`)!!!!rN!J!N!BrN!J!N"LYFaIp!*!'!C6r!!$kr`!!qYJ!!2VB!!$kf!!!qYJ
+bB`)!!!!rN!J!N!BrN!J!N"LYGH)$!*!'!C6r!!$kr`!!qYJ!!2VB!!$kf!!!qYJ
!!2VrS!$krb$`!2Vr!!$kr`!!qYJ9!!$kf!!!qYJ!!"2kf!!!q[mJ#L!,)!`"S!!
J"V%3&2J!q[m!!2VB!!$kf!!!qYJ!!2VB!!$kf!!!q[m!!2Vr!!$krrJ!q[m3*J!
!q[r!!2Vr-2J!q[m!N!39!%!!%!%8!-8!!!%!!3#3"3)!N!8L!!%!N!8&!!S!S`#
X!*!(Y!!m!-J!GJ3%8fK[G`!!!3!!!!%r!!!!2`!!!&8!m#cN%hJ!!!!F!%B!!84
--6dF!!!!54%P86!!!!"i#!*!,!J$rr`!!!"N!N!313R*[Gh0PFL"hD@jNEhHJ9`:
+-6dF!!!!54%P86!!!!"i#!*!,!J$rr`!!!"N!N!313R*[Gh0PFL"hD@jNEhHh5!:
diff --git a/Mac/Demo/PICTbrowse/PICTbrowse2.py b/Mac/Demo/PICTbrowse/PICTbrowse2.py
index deffba6..588cc0b 100644
--- a/Mac/Demo/PICTbrowse/PICTbrowse2.py
+++ b/Mac/Demo/PICTbrowse/PICTbrowse2.py
@@ -137,7 +137,7 @@ class MyDialog(FrameWork.DialogWindow):
v = v + '"' + self.contents[i][1] + '"'
self.list.LSetCell(v, (0, i))
self.list.LSetDrawingMode(1)
- self.list.LUpdate()
+ self.list.LUpdate(self.wid.GetWindowPort().visRgn)
def do_listhit(self, event):
(what, message, when, where, modifiers) = event
@@ -170,7 +170,7 @@ class MyDialog(FrameWork.DialogWindow):
tp, h, rect = self.wid.GetDialogItem(MAIN_LIST)
Qd.SetPort(self.wid)
Qd.FrameRect(rect)
- self.list.LUpdate()
+ self.list.LUpdate(self.wid.GetWindowPort().visRgn)
def do_activate(self, activate, event):
self.list.LActivate(activate)