MCPcopy Index your code
hub / github.com/python/cpython / fraction

Method fraction

Lib/tkinter/__init__.py:3810–3813  ·  view source on GitHub ↗

Return the fractional value which corresponds to a slider position of X,Y.

(self, x, y)

Source from the content-addressed store, hash-verified

3808 self.tk.call(self._w, 'delta', deltax, deltay))
3809
3810 def fraction(self, x, y):
3811 """Return the fractional value which corresponds to a slider
3812 position of X,Y."""
3813 return self.tk.getdouble(self.tk.call(self._w, 'fraction', x, y))
3814
3815 def identify(self, x, y):
3816 """Return the element under position X,Y as one of

Callers

nothing calls this directly

Calls 2

getdoubleMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected