[Idle-dev] CVS: idle TreeWidget.py,1.3,1.4
Kurt B. Kaiser
kbk@users.sourceforge.net
Tue, 17 Sep 2002 20:26:50 -0700
Update of /cvsroot/idlefork/idle
In directory usw-pr-cvs1:/tmp/cvs-serv1061
Modified Files:
TreeWidget.py
Log Message:
Merge Py Idle changes:
Rev 1.6 GvR
Finally fix SF bug #441172, using a variant of patch ##443626:
canceling an edit operation would not revert the value of the field.
The fix takes care to destroy the Entry object, as suggested in the
patch.
Rev 1.7 Geiger Ho / GvR
(previously applied - Idlefork Rev 1.3)
Rev 1.8 doerwalter
(string methods)
Index: TreeWidget.py
===================================================================
RCS file: /cvsroot/idlefork/idle/TreeWidget.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** TreeWidget.py 27 May 2002 21:58:05 -0000 1.3
--- TreeWidget.py 18 Sep 2002 03:26:47 -0000 1.4
***************
*** 17,21 ****
import os
import sys
- import string
from Tkinter import *
import imp
--- 17,20 ----
***************
*** 292,295 ****
--- 291,300 ----
def edit_cancel(self, event=None):
+ try:
+ entry = self.entry
+ del self.entry
+ except AttributeError:
+ return
+ entry.destroy()
self.drawtext()
self.canvas.focus_set()