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

Method setUp

Lib/test/test_tkinter/test_widgets.py:310–313  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

308 _clipped = {'borderwidth', 'highlightthickness', 'insertborderwidth', 'padx', 'pady'}
309
310 def setUp(self):
311 super().setUp()
312 if tk_version[:2] == (9, 0) and get_tk_patchlevel(self.root) < (9, 0, 1):
313 self._clipped = self._clipped - {'borderwidth'}
314
315 def create(self, **kwargs):
316 return tkinter.Menubutton(self.root, **kwargs)

Callers

nothing calls this directly

Calls 3

get_tk_patchlevelFunction · 0.90
superClass · 0.85
setUpMethod · 0.45

Tested by

no test coverage detected