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

Method simulate_heading_click

Lib/test/test_ttk/test_widgets.py:1673–1678  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

1671
1672 def test_heading_callback(self):
1673 def simulate_heading_click(x, y):
1674 if tk_version >= (8, 6):
1675 self.assertEqual(self.tv.identify_column(x), '#0')
1676 self.assertEqual(self.tv.identify_region(x, y), 'heading')
1677 simulate_mouse_click(self.tv, x, y)
1678 self.tv.update()
1679
1680 success = [] # no success for now
1681

Callers

nothing calls this directly

Calls 5

simulate_mouse_clickFunction · 0.90
identify_columnMethod · 0.80
identify_regionMethod · 0.80
assertEqualMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected