MCPcopy Index your code
hub / github.com/RustPython/RustPython / _gridconvvalue

Method _gridconvvalue

Lib/tkinter/__init__.py:1917–1929  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

1915 bbox = grid_bbox
1916
1917 def _gridconvvalue(self, value):
1918 if isinstance(value, (str, _tkinter.Tcl_Obj)):
1919 try:
1920 svalue = str(value)
1921 if not svalue:
1922 return None
1923 elif '.' in svalue:
1924 return self.tk.getdouble(svalue)
1925 else:
1926 return self.tk.getint(svalue)
1927 except (ValueError, TclError):
1928 pass
1929 return value
1930
1931 def _grid_configure(self, command, index, cnf, kw):
1932 """Internal function."""

Callers 1

_grid_configureMethod · 0.95

Calls 4

isinstanceFunction · 0.85
strFunction · 0.85
getdoubleMethod · 0.80
getintMethod · 0.45

Tested by

no test coverage detected