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

Method test_grid_size

Lib/test/test_tkinter/test_geometry_managers.py:897–905  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

895 self.assertEqual(f.winfo_height(), 85)
896
897 def test_grid_size(self):
898 with self.assertRaises(TypeError):
899 self.root.grid_size(0)
900 self.assertEqual(self.root.grid_size(), (0, 0))
901 f = tkinter.Scale(self.root)
902 f.grid_configure(row=0, column=0)
903 self.assertEqual(self.root.grid_size(), (1, 1))
904 f.grid_configure(row=4, column=5)
905 self.assertEqual(self.root.grid_size(), (6, 5))
906
907 def test_grid_content(self):
908 self.assertEqual(self.root.grid_content(), [])

Callers

nothing calls this directly

Calls 4

grid_sizeMethod · 0.80
grid_configureMethod · 0.80
assertRaisesMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected