diff options
author | Guido van Rossum <guido@python.org> | 1999-04-07 16:25:54 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-04-07 16:25:54 (GMT) |
commit | 0d8d3dd5b0034d75a6a62d6c287027f0f461fdc2 (patch) | |
tree | 11ac4248efc471dad2bb645cd4fbe0dcfc5a9e8d /Lib | |
parent | 2571cc8bf50a9e08bc45116ee7f39de78139a6ca (diff) | |
download | cpython-0d8d3dd5b0034d75a6a62d6c287027f0f461fdc2.zip cpython-0d8d3dd5b0034d75a6a62d6c287027f0f461fdc2.tar.gz cpython-0d8d3dd5b0034d75a6a62d6c287027f0f461fdc2.tar.bz2 |
lower, tkraise/lift hide Misc.lower, Misc.tkraise/lift,
so the preferred name for them is tag_lower, tag_raise
(similar to tag_bind, and similar to the Text widget);
unfortunately can't delete the old ones yet (maybe in 1.6)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index e50a412..7e45adb 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -1294,16 +1294,21 @@ class Canvas(Widget): self.tk.call((self._w, 'itemconfigure', tagOrId) + self._options(cnf, kw)) itemconfig = itemconfigure - def lower(self, *args): + # lower, tkraise/lift hide Misc.lower, Misc.tkraise/lift, + # so the preferred name for them is tag_lower, tag_raise + # (similar to tag_bind, and similar to the Text widget); + # unfortunately can't delete the old ones yet (maybe in 1.6) + def tag_lower(self, *args): self.tk.call((self._w, 'lower') + args) + lower = tag_lower def move(self, *args): self.tk.call((self._w, 'move') + args) def postscript(self, cnf={}, **kw): return self.tk.call((self._w, 'postscript') + self._options(cnf, kw)) - def tkraise(self, *args): + def tag_raise(self, *args): self.tk.call((self._w, 'raise') + args) - lift = tkraise + lift = tkraise = tag_raise def scale(self, *args): self.tk.call((self._w, 'scale') + args) def scan_mark(self, x, y): |