Issue 761144: tkMessageBox.askyesnocancel missing - Python tracker (original) (raw)
there's no easy way to make a MessageBox that displays yes, no and cancel. and askquestion doesn't work:
askquestion("hi", "huhu", type=YESNOCANCEL) Traceback (most recent call last): File "<pyshell#6>", line 1, in ? askquestion("hi", "huhu", type=YESNOCANCEL) File "C:\Programme\Python22\lib\lib-tk\tkMessageBox.py", line 91, in askquestion return apply(_show, (title, message, QUESTION, YESNO), options) TypeError: _show() got multiple values for keyword argument 'type'
so I decided to hack into tkMessageBox.py and added one.
Have a nice day! Michael