[Python-Dev] Re: [Python-checkins] python/dist/src/Lib/idlelib EditorWindow.py, 1.65, 1.66 NEWS.txt, 1.53, 1.54 config-keys.def, 1.21, 1.22 configHandler.py, 1.37, 1.38 (original) (raw)

Guido van Rossum gvanrossum at gmail.com
Fri Jan 28 03:48:00 CET 2005


Thanks!!!

On Thu, 27 Jan 2005 16:16:19 -0800, kbk at users.sourceforge.net <kbk at users.sourceforge.net> wrote:

Update of /cvsroot/python/python/dist/src/Lib/idlelib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5316

Modified Files: EditorWindow.py NEWS.txt config-keys.def configHandler.py Log Message: Add keybindings for del-word-left and del-word-right. M EditorWindow.py M NEWS.txt M config-keys.def M configHandler.py Index: EditorWindow.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/EditorWindow.py,v retrieving revision 1.65 retrieving revision 1.66 diff -u -d -r1.65 -r1.66 --- EditorWindow.py 19 Jan 2005 00:22:54 -0000 1.65 +++ EditorWindow.py 28 Jan 2005 00:16:15 -0000 1.66 @@ -141,6 +141,8 @@ text.bind("<>",self.changeindentwidthevent) text.bind("", self.moveatedgeifselection(0)) text.bind("", self.moveatedgeifselection(1)) + text.bind("<>", self.delwordleft) + text.bind("<>", self.delwordright) if flist: flist.inversedict[self] = key @@ -386,6 +388,14 @@ pass return moveatedge + def delwordleft(self, event): + self.text.eventgenerate('') + return "break" + + def delwordright(self, event): + self.text.eventgenerate('') + return "break" + def findevent(self, event): SearchDialog.find(self.text) return "break" Index: NEWS.txt =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/NEWS.txt,v retrieving revision 1.53 retrieving revision 1.54 diff -u -d -r1.53 -r1.54 --- NEWS.txt 19 Jan 2005 00:22:57 -0000 1.53 +++ NEWS.txt 28 Jan 2005 00:16:16 -0000 1.54 @@ -3,17 +3,24 @@ Release date: XX-XXX-2005 +- Add keybindings for del-word-left and del-word-right. + - Discourage using an indent width other than 8 when using tabs to indent Python code. - Restore use of EditorWindow.setindentationparams(), was dead code since - Autoindent was merged into EditorWindow. + Autoindent was merged into EditorWindow. This allows IDLE to conform to the + indentation width of a loaded file. (But it still will not switch to tabs + even if the file uses tabs.) Any change in indent width is local to that + window. - Add Tabnanny check before Run/F5, not just when Checking module. - If an extension can't be loaded, print warning and skip it instead of erroring out. +- Improve error handling when .idlerc can't be created (warn and exit). + - The GUI was hanging if the shell window was closed while a rawinput() was pending. Restored the quit() of the readline() mainloop(). http://mail.python.org/pipermail/idle-dev/2004-December/002307.html Index: config-keys.def =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/config-keys.def,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- config-keys.def 17 Aug 2004 08:01:19 -0000 1.21 +++ config-keys.def 28 Jan 2005 00:16:16 -0000 1.22 @@ -55,6 +55,8 @@ untabify-region= toggle-tabs= change-indentwidth= +del-word-left= +del-word-right= [IDLE Classic Unix] copy= @@ -104,6 +106,8 @@ untabify-region= toggle-tabs= change-indentwidth= +del-word-left= +del-word-right= [IDLE Classic Mac] copy= @@ -153,3 +157,5 @@ untabify-region= toggle-tabs= change-indentwidth= +del-word-left= +del-word-right= Index: configHandler.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/configHandler.py,v retrieving revision 1.37 retrieving revision 1.38 diff -u -d -r1.37 -r1.38 --- configHandler.py 13 Jan 2005 17:37:38 -0000 1.37 +++ configHandler.py 28 Jan 2005 00:16:16 -0000 1.38 @@ -579,7 +579,9 @@ '<>': [''], '<>': [''], '<>': [''], - '<>': [''] + '<>': [''], + '<>': [''], + '<>': [''] } if keySetName: for event in keyBindings.keys():


Python-checkins mailing list Python-checkins at python.org http://mail.python.org/mailman/listinfo/python-checkins

-- --Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list