summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/Tkinter.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-07-04 10:48:25 (GMT)
committerGuido van Rossum <guido@python.org>1994-07-04 10:48:25 (GMT)
commitbd84b04f643e629eb62778d0b8abc31fc03d69aa (patch)
tree07def4c615e42ad8eb01a329904e7babda9d44fc /Lib/tkinter/Tkinter.py
parent526beed88db90729df8bec2957a6c7e12a0f87d8 (diff)
downloadcpython-bd84b04f643e629eb62778d0b8abc31fc03d69aa.zip
cpython-bd84b04f643e629eb62778d0b8abc31fc03d69aa.tar.gz
cpython-bd84b04f643e629eb62778d0b8abc31fc03d69aa.tar.bz2
Mon Jul 4 12:42:04 1994 Guido van Rossum (guido@voorn.cwi.nl)
* Tkinter.py (Misc.bind_all): fix typo (name shouldn't be quoted). Wed Jun 29 10:02:21 1994 Guido van Rossum (guido@voorn.cwi.nl) * Tkinter.py (Misc.selection_get): add 'return' (Tk.destroy): self.master is always None
Diffstat (limited to 'Lib/tkinter/Tkinter.py')
-rwxr-xr-xLib/tkinter/Tkinter.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py
index f3f17e1..cfc92e1 100755
--- a/Lib/tkinter/Tkinter.py
+++ b/Lib/tkinter/Tkinter.py
@@ -147,7 +147,7 @@ class Misc:
def selection_clear(self):
self.tk.call('selection', 'clear', self._w)
def selection_get(self, type=None):
- self.tk.call('selection', 'get', type)
+ return self.tk.call('selection', 'get', type)
def selection_handle(self, func, type=None, format=None):
name = self._register(func)
self.tk.call('selection', 'handle', self._w,
@@ -288,7 +288,7 @@ class Misc:
if add: add = '+'
name = self._register(func, self._substitute)
self.tk.call('bind', 'all' , sequence,
- (add + `name`,) + self._subst_format)
+ (add + name,) + self._subst_format)
def bind_class(self, className, sequence, func, add=''):
if add: add = '+'
name = self._register(func, self._substitute)
@@ -499,7 +499,7 @@ class Tk(Misc, Wm):
self.tk.createcommand('tkerror', _tkerror)
def destroy(self):
for c in self.children.values(): c.destroy()
- del self.master.children[self._name]
+## del self.master.children[self._name]
self.tk.call('destroy', self._w)
def __str__(self):
return self._w