예제 #1
0
 def __init__(self, kind, prompt, ok_label="OK", default=1, **kwds):
     BaseAlert.__init__(self,
                        kind,
                        prompt,
                        button_labels=[ok_label],
                        default=default,
                        **kwds)
예제 #2
0
 def __init__(self,
              kind,
              prompt,
              yes_label="Yes",
              no_label="No",
              default=1,
              cancel=0,
              **kwds):
     BaseAlert.__init__(self,
                        kind,
                        prompt,
                        button_labels=[yes_label, no_label],
                        default=default,
                        cancel=cancel,
                        **kwds)
 def __init__(self, kind, prompt,
         yes_label = "Yes", no_label = "No", other_label = "Cancel",
         default = 1, cancel = -1, **kwds):
     BaseAlert.__init__(self, kind, prompt,
         button_labels = [yes_label, no_label, other_label],
         default = default, cancel = cancel, **kwds)
 def __init__(self, kind, prompt,
         ok_label = "OK", default = 1, **kwds):
     BaseAlert.__init__(self, kind, prompt,
         button_labels = [ok_label], default = default, **kwds)