From: Jack Jansen Date: Fri, 26 Jul 1996 16:04:29 +0000 (+0000) Subject: Allow only one selection (this tests settability of selFlags) X-Git-Tag: v1.4b2~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8431733c0744cbed410139b9b5d625aa29a38917;p=python Allow only one selection (this tests settability of selFlags) --- diff --git a/Mac/Lib/test/tlist.py b/Mac/Lib/test/tlist.py index 4dba121236..fdcfe6e1c9 100644 --- a/Mac/Lib/test/tlist.py +++ b/Mac/Lib/test/tlist.py @@ -11,6 +11,7 @@ from FrameWork import * import Win import Qd import List +import Lists import os class ListWindow(Window): @@ -22,6 +23,7 @@ class ListWindow(Window): Qd.SetPort(w) self.wid = w self.list = List.LNew(r2, (0, 0, 1, 1), (0,0), 0, w, 0, 1, 1, 1) + self.list.selFlags = Lists.lOnlyOne self.filllist() w.DrawGrowIcon() self.do_postopen()