[Python-bugs-list] [ python-Bugs-761144 ] tkMessageBox.askyesnocancel missing
SourceForge.net
noreply@sourceforge.net
Thu, 26 Jun 2003 04:44:25 -0700
Bugs item #761144, was opened at 2003-06-26 13:44
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=761144&group_id=5470
Category: Tkinter
Group: Python 2.2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Peternell (mpeti)
Assigned to: Nobody/Anonymous (nobody)
Summary: tkMessageBox.askyesnocancel missing
Initial Comment:
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=761144&group_id=5470