我们从Python开源项目中,提取了以下8个代码示例,用于说明如何使用tkMessageBox.askretrycancel()。
def retryBox(self, title, message): self.topLevel.update_idletasks() return MessageBox.askretrycancel(title, message)
def MsgBox(title, text, style): box = [ msg.showinfo, msg.showwarning, msg.showerror, msg.askquestion, msg.askyesno, msg.askokcancel, msg.askretrycancel, ]; tk.Tk().withdraw(); #Hide Main Window. if style in range(7): return box[style](title, text)
def ask_retry_cancel(self, title, message): return messagebox.askretrycancel(title, message)
def ask_retry(self): return tkMessageBox.askretrycancel(u"???", u"????????????? \n" u"(?????????)")