[issue11896] Save on Close fails in IDLE, from Linux system

2011-05-12 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset da7a120c0478 by Kurt B. Kaiser in branch '3.1':
Issue #11896: Save on Close failed despite selecting Yes in dialog.
http://hg.python.org/cpython/rev/da7a120c0478

New changeset 87196154dec8 by Kurt B. Kaiser in branch 'default':
Merge from 3.2
http://hg.python.org/cpython/rev/87196154dec8

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11896
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11896] Save on Close fails in IDLE, from Linux system

2011-05-12 Thread Kurt B. Kaiser

Kurt B. Kaiser k...@shore.net added the comment:

tkinter.messagebox.Message sending class '_tkinter.Tcl_Obj' rather
than str, so comparison with str failed.  Always for cancel, (almost?)
always for yes.

Use the helper functions in tkinter.messagebox, which correct for that.

This hasn't worked for a long time, I'm surprised it just came up.  Will
backport to 2.7.

--
assignee: ned.deily - kbk
nosy: +kbk
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed
versions: +Python 3.1, Python 3.3 -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11896
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11896] Save on Close fails in IDLE, from Linux system

2011-05-12 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset ac14158462cf by Kurt B. Kaiser in branch '2.7':
Issue #11896: Save on Close failed despite selecting Yes in dialog.
http://hg.python.org/cpython/rev/ac14158462cf

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11896
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11896] Save on Close fails in IDLE, from Linux system

2011-04-21 Thread marcus harris

New submission from marcus harris harrismh...@charter.net:

Under some circumstances, which I will detail later down the note, if I click 
File -- Close without explicitly saving, and without running the module with 
Run -- Run Module , then the last changes I made to the file do not get saved. 
The save dialogue pop-up does appear, and I do select YES--- I want to save 
before closing--- but when I re-open the file (IDLE or vi) the changes are not 
there... as though the save binding did not work, or like there was some timing 
glitch that prevented the save somehow before the edit window closed down. The 
error is not solid, in that, if the file is larger (significantly) then the 
File -- Close (select Yes on the dialogue) does work... ??

The work around is to do either 1) run the module, or 2) explicitly click File 
-- Save.

The alleged bug can be reproduced on both of my primary desk machines, Linux 
systems, using IDLE on 2.6, 2.7, and 3.2/  These are the instructions for 
reproducing this little snag:

1) Open a new edit window with File -- New Window

2) Enter the following code on the first two lines:
def testfunc():
return None

3) Click File -- Save( testit.py )

4) Click File -- Close

5) Open the file with  File -- Recent Files   ( select testit.py )

6) Use the edit window to place these three lines above testfunc:

# comment block
##

7) ClickFile -- Close

8) When the Save on Close dialogue appears select Yes

9) Re-open the file with   File -- Recent Files   ( select testit.py )

10) The comment block will not be there...  didn't save. 


Running on Ubuntu 9.10  (all updates)

Tk  8.5.x

reproduced on built-in 2.6
compiled from sources...   2.73.2

kind regards,
m harris

--
components: IDLE, Library (Lib), Tkinter
messages: 134194
nosy: marcus777, terry.reedy
priority: normal
severity: normal
status: open
title: Save on Close fails in IDLE, from Linux system
type: behavior
versions: Python 2.6, Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11896
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11896] Save on Close fails in IDLE, from Linux system

2011-04-21 Thread marcus harris

marcus harris harrismh...@charter.net added the comment:

Terry Reedy was not able to reproduce this snag on an XP system; however, 
suggested there might be a real save on close error on the linux side... also 
requested to be place on the nosy list...

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11896
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11896] Save on Close fails in IDLE, from Linux system

2011-04-21 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

Thanks for the precise test case.  I am able to reproduce the failure on OS X 
using the MacPorts X11-Tk Tkinter but not with the standard OS X AquaTk Tkinter.

--
assignee:  - ned.deily
nosy: +ned.deily
stage:  - needs patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11896
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com