mirror of
https://github.com/python/cpython.git
synced 2025-07-22 18:55:22 +00:00
Added coords() and identify() methods to Scale class.
This commit is contained in:
parent
a69ada66d0
commit
b4750db3b3
1 changed files with 4 additions and 0 deletions
|
@ -1552,6 +1552,10 @@ class Scale(Widget):
|
||||||
return getdouble(value)
|
return getdouble(value)
|
||||||
def set(self, value):
|
def set(self, value):
|
||||||
self.tk.call(self._w, 'set', 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):
|
class Scrollbar(Widget):
|
||||||
def __init__(self, master=None, cnf={}, **kw):
|
def __init__(self, master=None, cnf={}, **kw):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue