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

Method setUp

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

Source from the content-addressed store, hash-verified

794 _stringify = True
795
796 def setUp(self):
797 super().setUp()
798 if tk_version[:2] == (9, 0) and get_tk_patchlevel(self.root) < (9, 0, 1):
799 self._rounds_pixels = True
800 self._no_round = {'borderwidth', 'height', 'highlightthickness',
801 'width', 'xscrollincrement', 'yscrollincrement'}
802 self._clipped = self._clipped - {'insertborderwidth', 'insertwidth', 'selectborderwidth'}
803
804 def create(self, **kwargs):
805 return tkinter.Canvas(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