From b4750db3b3b0a5732481e62e09e11ea9dbd58ba9 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 11 Aug 1998 19:07:14 +0000 Subject: [PATCH] Added coords() and identify() methods to Scale class. --- Lib/lib-tk/Tkinter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 523db9e5cf0..3098c6c8d00 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -1552,6 +1552,10 @@ class Scale(Widget): return getdouble(value) def set(self, value): self.tk.call(self._w, 'set', value) + def coords(self, value=None): + return self._getints(self.tk.call(self._w, 'coords', value)) + def identify(self, x, y): + return self.tk.call(self._w, 'identify', x, y) class Scrollbar(Widget): def __init__(self, master=None, cnf={}, **kw):