From: Guido van Rossum Date: Tue, 11 Aug 1998 19:07:14 +0000 (+0000) Subject: Added coords() and identify() methods to Scale class. X-Git-Tag: v1.5.2a1~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4750db3b3b0a5732481e62e09e11ea9dbd58ba9;p=python Added coords() and identify() methods to Scale class. --- diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 523db9e5cf..3098c6c8d0 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):