diff options
author | Guido van Rossum <guido@python.org> | 1996-10-24 18:34:36 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-10-24 18:34:36 (GMT) |
commit | 40f7a55608a1caf8966ae2fdcf3b140bbb6b98f9 (patch) | |
tree | f2d82507ccabae7bac0d5fb4f69eff0ebb39f14a /Lib | |
parent | a5a4c2a7d80532dbbb874a5cfb7dc66f9c735373 (diff) | |
download | cpython-40f7a55608a1caf8966ae2fdcf3b140bbb6b98f9.zip cpython-40f7a55608a1caf8966ae2fdcf3b140bbb6b98f9.tar.gz cpython-40f7a55608a1caf8966ae2fdcf3b140bbb6b98f9.tar.bz2 |
Get rid of bogus binding of <Delete> to a function that deletes the next
character (this is already a built-in binding now).
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 3 | ||||
-rwxr-xr-x | Lib/tkinter/Tkinter.py | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index a8936b5..e18c05e 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -1398,11 +1398,8 @@ class Scrollbar(Widget): class Text(Widget): def __init__(self, master=None, cnf={}, **kw): Widget.__init__(self, master, 'text', cnf, kw) - self.bind('<Delete>', self.bspace) def bbox(self, *args): return self._getints(self._do('bbox', args)) or None - def bspace(self, *args): - self.delete('insert') def tk_textSelectTo(self, index): self.tk.call('tk_textSelectTo', self._w, index) def tk_textBackspace(self): diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py index a8936b5..e18c05e 100755 --- a/Lib/tkinter/Tkinter.py +++ b/Lib/tkinter/Tkinter.py @@ -1398,11 +1398,8 @@ class Scrollbar(Widget): class Text(Widget): def __init__(self, master=None, cnf={}, **kw): Widget.__init__(self, master, 'text', cnf, kw) - self.bind('<Delete>', self.bspace) def bbox(self, *args): return self._getints(self._do('bbox', args)) or None - def bspace(self, *args): - self.delete('insert') def tk_textSelectTo(self, index): self.tk.call('tk_textSelectTo', self._w, index) def tk_textBackspace(self): |