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

Method setUpClass

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

Source from the content-addressed store, hash-verified

397
398 @classmethod
399 def setUpClass(cls):
400 requires('gui')
401
402 cls.root = root = tk.Tk()
403 root.withdraw()
404
405 fix_scaling(root)
406 fixwordbreaks(root)
407 fix_x11_paste(root)
408
409 cls.flist = flist = PyShellFileList(root)
410 # See #43981 about macosx.setupApp(root, flist) causing failure.
411 root.update_idletasks()
412
413 cls.init_shell()
414
415 @classmethod
416 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 7

requiresFunction · 0.90
fix_scalingFunction · 0.90
fixwordbreaksFunction · 0.90
fix_x11_pasteFunction · 0.90
PyShellFileListClass · 0.90
update_idletasksMethod · 0.80
init_shellMethod · 0.80

Tested by

no test coverage detected