Lines Matching refs:message
1 # tk common message boxes
3 # this module provides an interface to the native message boxes
16 # - message: the message to display
55 # message dialog class
57 class Message(Dialog):
58 "A message box"
67 def _show(title=None, message=None, _icon=None, _type=None, **options):
71 if message: options["message"] = message
72 res = Message(**options).show()
81 def showinfo(title=None, message=None, **options):
82 "Show an info message"
83 return _show(title, message, INFO, OK, **options)
85 def showwarning(title=None, message=None, **options):
86 "Show a warning message"
87 return _show(title, message, WARNING, OK, **options)
89 def showerror(title=None, message=None, **options):
90 "Show an error message"
91 return _show(title, message, ERROR, OK, **options)
93 def askquestion(title=None, message=None, **options):
95 return _show(title, message, QUESTION, YESNO, **options)
97 def askokcancel(title=None, message=None, **options):
99 s = _show(title, message, QUESTION, OKCANCEL, **options)
102 def askyesno(title=None, message=None, **options):
104 s = _show(title, message, QUESTION, YESNO, **options)
107 def askyesnocancel(title=None, message=None, **options):
109 s = _show(title, message, QUESTION, YESNOCANCEL, **options)
116 def askretrycancel(title=None, message=None, **options):
118 s = _show(title, message, WARNING, RETRYCANCEL, **options)