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

Method checkFloatParam

Lib/test/test_tkinter/widget_tests.py:91–96  ·  view source on GitHub ↗
(self, widget, name, *values, conv=float, **kwargs)

Source from the content-addressed store, hash-verified

89 self.checkInvalidParam(widget, name, 3.2, errmsg=errmsg)
90
91 def checkFloatParam(self, widget, name, *values, conv=float, **kwargs):
92 for value in values:
93 self.checkParam(widget, name, value, conv=conv, **kwargs)
94 errmsg = 'expected floating-point number but got "{}"'
95 self.checkInvalidParam(widget, name, '', errmsg=errmsg)
96 self.checkInvalidParam(widget, name, 'spam', errmsg=errmsg)
97
98 def checkBooleanParam(self, widget, name):
99 for value in (False, 0, 'false', 'no', 'off'):

Callers 14

test_configure_fromMethod · 0.80
test_configure_toMethod · 0.80
test_configure_fromMethod · 0.80
test_configure_toMethod · 0.80
test_configure_fromMethod · 0.80
test_configure_toMethod · 0.80
test_configure_valueMethod · 0.80

Calls 2

checkParamMethod · 0.95
checkInvalidParamMethod · 0.95

Tested by

no test coverage detected