Lines Matching +full:close +full:- +full:range
20 # I wrote this because I want to use my 486-33 laptop as my main
35 # (it's possible -- I've already tried :-).
37 # height and width defaults. Hmmm - should also then check for
39 # Put into a package name to make more reusable - reduce the possibility
43 # there is a bug in (at least) Linux-Mandrake 7.0 Russian Edition
44 # running on AMD K6-2 3D that causes core dump when 'dialog'
45 # is running with --gauge option;
51 # - 'gauge' widget *)
52 # - 'title' option to some widgets
53 # - 'checked' option to checklist dialog; clicking "Cancel" is now
55 # - 'selected' option to radiolist dialog; clicking "Cancel" is now
57 # - some other cosmetic changes and improvements
78 self.__bgTitle = '--backtitle "%s"' % text
87 f.close()
93 """Call dialog w/out passing any more options. Needed by --clear."""
101 return '--title "%s" ' % title
107 Uses the dialog --yesno option.
111 '--yesno "%s" %d %d' % (text, height, width))
121 '--msgbox "%s" %d %d' % (text, height, width))
126 self.__perform('--infobox "%s" %d %d' % (text, height, width))
135 '--inputbox "%s" %d %d "%s"' % (text, height, width, init))
150 ' --textbox "%s" %d %d' % (filename, height, width))
156 --menu option of dialog, which allows for complex arguments. This
161 menuheight = height - 8
162 pairs = map(lambda i, item: (i + 1, item), range(len(list)), list)
164 (code, output) = self.__perform('--menu "%s" %d %d %d %s' %\
167 return list[int(output[0]) - 1]
177 checked -- a list of boolean (0/1) values; len(checked) must equal
182 menuheight = height - 8
185 range(len(list)), list, checked)
188 (c, o) = self.__perform('--checklist "%s" %d %d %d %s' %\
192 indexList = map(lambda x: int(x[1:-1]), split(output))
208 selected -- the selected item (must be between 1 and len(list)
211 menuheight = height - 8
213 range(len(list)), list)
215 i, item, tmp = triples[selected - 1]
216 triples[selected - 1] = (i, item, 'on')
219 (c, o) = self.__perform('--radiolist "%s" %d %d %d %s' %\
222 return list[int(o[0]) - 1]
231 Clear the screen. Equivalent to the dialog --clear option.
233 self.__perform_no_options('--clear')
241 --textbox.
246 f.close()
248 '--textbox "%s" %d %d' % (fName, height, width))
262 d.stop_gauge() # clean-up actions
265 '--gauge "%s" %d %d %d' % (text, height, width, perc)
292 self.pipe.close()
324 "Sun-dried tomatoes"], checked=[0,0,0,1,1,1])
342 for i in range(1, 101):