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

Method setUp

Lib/test/test_ttk/test_widgets.py:1001–1007  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

999 _clipped = {}
1000
1001 def setUp(self):
1002 super().setUp()
1003 self.nb = self.create(padding=0)
1004 self.child1 = ttk.Label(self.root)
1005 self.child2 = ttk.Label(self.root)
1006 self.nb.add(self.child1, text='a')
1007 self.nb.add(self.child2, text='b')
1008
1009 def create(self, **kwargs):
1010 return ttk.Notebook(self.root, **kwargs)

Callers

nothing calls this directly

Calls 4

createMethod · 0.95
superClass · 0.85
setUpMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected