• Home
  • Raw
  • Download

Lines Matching +full:cancel +full:- +full:in +full:- +full:progress

3 Message(msg) -- display a message and an OK button.
4 AskString(prompt, default) -- ask for a string, display OK and Cancel buttons.
5 AskPassword(prompt, default) -- like AskString(), but shows text as bullets.
6 AskYesNoCancel(question, default) -- display a question and Yes, No and Cancel buttons.
7 GetArgv(optionlist, commandlist) -- fill a sys.argv-like list using a dialog
8 AskFileForOpen(...) -- Ask the user for an existing file
9 AskFileForSave(...) -- Ask the user for an output file
10 AskFolder(...) -- Ask the user to select a folder
11 bar = Progress(label, maxvalue) -- Display a progress bar
12 bar.set(value) -- Set value
13 bar.inc( *amount ) -- increment value by amount (default=1)
14 bar.label( *newlabel ) -- get or set text label.
16 More documentation in each function.
22 warnpy3k("In 3.x, the EasyDialogs module is removed.", stacklevel=2)
55 """Make sure the application is in the foreground"""
59 if '\r' in text:
64 if '\n' in text:
79 d = GetNewDialog(id, -1)
97 def AskString(prompt, default = "", id=261, ok=None, cancel=None): argument
102 Return None when the user clicks the Cancel button.
112 d = GetNewDialog(id, -1)
125 if cancel is not None:
127 h.SetControlTitle(cancel)
139 def AskPassword(prompt, default='', id=264, ok=None, cancel=None): argument
145 Return None when the user clicks the Cancel button.
154 d = GetNewDialog(id, -1)
169 if cancel is not None:
171 h.SetControlTitle(cancel)
173 d.SetDialogCancelItem(Dialogs.cancel)
183 def AskYesNoCancel(question, default = 0, yes=None, no=None, cancel=None, id=262): argument
188 Return -1 when the user clicks the Cancel button.
198 d = GetNewDialog(id, -1)
206 # 4 = Cancel
222 if cancel is not None:
223 if cancel == '':
227 h.SetControlTitle(cancel)
233 elif default == -1:
242 if n == 4: return -1
247 # OS X 10.8. Raise an ImportError here in that case so that callers
256 screenbounds[2]-4, screenbounds[3]-4
266 self.d = GetNewDialog(id, -1)
283 """title(text) - Set title of progress window"""
288 """label(text) - Set text in progress box"""
309 # Test for cancel button
316 if ds[0] and ds[1] == self.d and ds[-1] == 1:
329 """set(value) - Set progress bar position"""
345 """inc(amt) - Increment progress bar position"""
366 ## ready, ev = Evt.WaitNextEvent(0xffff, -1)
389 for item in items:
394 if label[-1] == '=' or label[-1] == ':':
395 label = label[:-1]
412 help = option[-1]
426 if label[-1] == '=' or label[-1] == ':':
440 d = GetNewDialog(id, -1)
458 help = commandlist[0][-1]
484 idx = d.GetDialogItemAsControl(ARGV_OPTION_GROUP).GetControlValue()-1
489 idx = d.GetDialogItemAsControl(ARGV_OPTION_GROUP).GetControlValue()-1
494 if option[-1] == '=' or option[-1] == ':':
495 option = option[:-1]
501 stringtoadd = '-' + option
503 stringtoadd = '--' + option
510 idx = d.GetDialogItemAsControl(ARGV_COMMAND_GROUP).GetControlValue()-1
513 help = commandlist[idx][-1]
517 idx = d.GetDialogItemAsControl(ARGV_COMMAND_GROUP).GetControlValue()-1
542 for stringtoadd in stringstoadd:
543 if '"' in stringtoadd or "'" in stringtoadd or " " in stringtoadd:
547 if oldstr and oldstr[-1] != ' ':
550 if oldstr[-1] != ' ':
562 while item[-1] != '"':
567 item = item[1:-1]
569 while item[-1] != "'":
574 item = item[1:-1]
586 for k in args.keys():
590 if 'dialogOptionFlags' not in args:
592 if 'defaultLocation' in args and \
603 if 'typeList' in args and not isinstance(args['typeList'], Carbon.Res.ResourceType):
606 if 'TEXT' in typeList and not '\0\0\0\0' in typeList:
609 for type in typeList:
613 if 'wanted' in args:
653 the other arguments can be looked up in Apple's Navigation Services documentation"""
668 if arg[0] != -128: # userCancelledErr
705 the other arguments can be looked up in Apple's Navigation Services documentation"""
721 if arg[0] != -128: # userCancelledErr
735 pardir_path = pardir_fsr.FSRefMakePath() # This is utf-8
763 the other arguments can be looked up in Apple's Navigation Services documentation"""
778 if arg[0] != -128: # userCancelledErr
803 for i in range(len(argv)):
809 s2 = AskPassword("Okay %s, tell us your nickname"%s, s, cancel="None")
824 bar = ProgressBar("Progress, progress...", 0, label="Ramping up...")
828 for i in xrange(20):
832 for i in xrange(100):