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

Method setUpClass

Lib/idlelib/idle_test/test_sidebar.py:41–55  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

39
40 @classmethod
41 def setUpClass(cls):
42 requires('gui')
43 cls.root = tk.Tk()
44 cls.root.withdraw()
45
46 cls.text_frame = tk.Frame(cls.root)
47 cls.text_frame.pack(side=tk.LEFT, fill=tk.BOTH, expand=True)
48 cls.text_frame.rowconfigure(1, weight=1)
49 cls.text_frame.columnconfigure(1, weight=1)
50
51 cls.text = tk.Text(cls.text_frame, width=80, height=24, wrap=tk.NONE)
52 cls.text.grid(row=1, column=1, sticky=tk.NSEW)
53
54 cls.editwin = Dummy_editwin(cls.text)
55 cls.editwin.vbar = tk.Scrollbar(cls.text_frame)
56
57 @classmethod
58 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 4

requiresFunction · 0.90
Dummy_editwinClass · 0.85
packMethod · 0.45
gridMethod · 0.45

Tested by

no test coverage detected