[Python-bugs-list] [ python-Bugs-761144 ] tkMessageBox.askyesnocancel missing
SourceForge.net
noreply@sourceforge.net
Mon, 30 Jun 2003 08:46:03 -0700
Bugs item #761144, was opened at 2003-06-26 07:44
Message generated for change (Comment added) made by gvanrossum
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: Closed
>Resolution: Rejected
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
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2003-06-30 11:46
Message:
Logged In: YES
user_id=6380
I'm rejecting this.
You can do this easily enough by using the Dialog class
directly.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=761144&group_id=5470