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

Method checkColorParam

Lib/test/test_tkinter/widget_tests.py:107–113  ·  view source on GitHub ↗
(self, widget, name, *, allow_empty=None, **kwargs)

Source from the content-addressed store, hash-verified

105 self.checkInvalidParam(widget, name, 'spam', errmsg=errmsg)
106
107 def checkColorParam(self, widget, name, *, allow_empty=None, **kwargs):
108 self.checkParams(widget, name,
109 '#ff0000', '#00ff00', '#0000ff', '#123456',
110 'red', 'green', 'blue', 'white', 'black', 'grey',
111 **kwargs)
112 self.checkInvalidParam(widget, name, 'spam',
113 errmsg='unknown color name "spam"')
114
115 def checkCursorParam(self, widget, name, **kwargs):
116 self.checkParams(widget, name, 'arrow', 'watch', 'cross', '',**kwargs)

Calls 2

checkParamsMethod · 0.95
checkInvalidParamMethod · 0.95

Tested by

no test coverage detected