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

Method check_positions

Lib/test/test_ttk/test_extensions.py:84–86  ·  view source on GitHub ↗
(scale, scale_pos, label, label_pos)

Source from the content-addressed store, hash-verified

82
83 # widget positionment
84 def check_positions(scale, scale_pos, label, label_pos):
85 self.assertEqual(scale.pack_info()['side'], scale_pos)
86 self.assertEqual(label.place_info()['anchor'], label_pos)
87 x = ttk.LabeledScale(self.root, compound='top')
88 check_positions(x.scale, 'bottom', x.label, 'n')
89 x.destroy()

Callers

nothing calls this directly

Calls 3

pack_infoMethod · 0.80
place_infoMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected