Home | History | Annotate | Download | only in lib-tk

Lines Matching full:options

10 # options (all have default values):
66 # Rename _icon and _type options to allow overriding them in options
67 def _show(title=None, message=None, _icon=None, _type=None, **options):
68 if _icon and "icon" not in options: options["icon"] = _icon
69 if _type and "type" not in options: options["type"] = _type
70 if title: options["title"] = title
71 if message: options["message"] = message
72 res = Message(**options).show()
81 def showinfo(title=None, message=None, **options):
83 return _show(title, message, INFO, OK, **options)
85 def showwarning(title=None, message=None, **options):
87 return _show(title, message, WARNING, OK, **options)
89 def showerror(title=None, message=None, **options):
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)