diff options
author | Guilherme Polo <ggpolo@gmail.com> | 2009-08-14 14:36:45 +0000 |
---|---|---|
committer | Guilherme Polo <ggpolo@gmail.com> | 2009-08-14 14:36:45 +0000 |
commit | e45f017023a30dc3bce7faa35b71705a7a385b73 (patch) | |
tree | a8b835234983900de60683fb9366d5c8c649cbb0 /Lib/lib-tk/ttk.py | |
parent | f198ac2db28109c0761395b80c7b482f9167f515 (diff) | |
download | cpython-git-e45f017023a30dc3bce7faa35b71705a7a385b73.tar.gz |
Issue #1135: Add the XView and YView mix-ins to avoid duplicating
the xview* and yview* methods.
Diffstat (limited to 'Lib/lib-tk/ttk.py')
-rw-r--r-- | Lib/lib-tk/ttk.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Lib/lib-tk/ttk.py b/Lib/lib-tk/ttk.py index dfeb21be3c..af7878837a 100644 --- a/Lib/lib-tk/ttk.py +++ b/Lib/lib-tk/ttk.py @@ -1170,7 +1170,7 @@ class Sizegrip(Widget): Widget.__init__(self, master, "ttk::sizegrip", kw) -class Treeview(Widget): +class Treeview(Widget, Tkinter.XView, Tkinter.YView): """Ttk Treeview widget displays a hierarchical collection of items. Each item has a textual label, an optional image, and an optional list @@ -1480,16 +1480,6 @@ class Treeview(Widget): return self.tk.call(self._w, "tag", "has", tagname, item) - def xview(self, *args): - """Query or modify horizontal position of the treeview.""" - return self.tk.call(self._w, "xview", *args) - - - def yview(self, *args): - """Query or modify vertical position of the treeview.""" - return self.tk.call(self._w, "yview", *args) - - # Extensions class LabeledScale(Frame, object): |