[Python-bugs-list] [ python-Bugs-807871 ] tkMessageBox.askyesno wrong result

SourceForge.net noreply at sourceforge.net
Wed Sep 17 11:18:33 EDT 2003


Bugs item #807871, was opened at 2003-09-17 11:18
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=807871&group_id=5470

Category: Tkinter
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Paul Perkins (ranger1)
Assigned to: Nobody/Anonymous (nobody)
Summary: tkMessageBox.askyesno wrong result

Initial Comment:
Bug: tkMessageBox.askyesno can return wrong result. 
 
   Bug in python 2.3, built from source on SuSE 8.2 Linux box 
with gcc (GCC) 3.3 20030226 (prerelease) (SuSE Linux). 
 
   To demonstate bug: 
   1. Run attached program in a shell window under X. 
   2. Click "askyesno" button in main window. 
   3. Click "Yes" button in the new window. 
   4. Observe printed result "True" in shell window. 
   5. Click "openfiledialog" button in main window. 
   6. Cancel the file dialog (or select a file, it doesn't matter). 
   7. Click "askyesno" button in main window. 
   8. Click "Yes" button in the new window. 
   9. Observe printed result "False" in shell window. 
 
   Using the debugger in idle, one can see that the 
difference is that Tk returns "yes" to Python in step 3, but 
True in step 8. 
 
   In python 2.2 (as built by SuSE for 8.2), the printed result 
   is always "1" in steps 3 and 8. 
 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=807871&group_id=5470



More information about the Python-bugs-list mailing list