diff options
author | Guido van Rossum <guido@python.org> | 1998-08-11 19:07:14 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-08-11 19:07:14 (GMT) |
commit | b4750db3b3b0a5732481e62e09e11ea9dbd58ba9 (patch) | |
tree | 393766501875e38d6afa2663fc983544e8288869 /Lib | |
parent | a69ada66d06fe46da7ffe7caeca97d4895c74925 (diff) | |
download | cpython-b4750db3b3b0a5732481e62e09e11ea9dbd58ba9.zip cpython-b4750db3b3b0a5732481e62e09e11ea9dbd58ba9.tar.gz cpython-b4750db3b3b0a5732481e62e09e11ea9dbd58ba9.tar.bz2 |
Added coords() and identify() methods to Scale class.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 523db9e..3098c6c 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): |