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

Method test_showtip

Lib/idlelib/idle_test/test_tooltip.py:75–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73 return tooltip.tipwindow and tooltip.tipwindow.winfo_viewable()
74
75 def test_showtip(self):
76 tooltip = Hovertip(self.button, 'ToolTip text')
77 self.addCleanup(tooltip.hidetip)
78 self.assertFalse(self.is_tipwindow_shown(tooltip))
79 tooltip.showtip()
80 self.assertTrue(self.is_tipwindow_shown(tooltip))
81
82 def test_showtip_twice(self):
83 tooltip = Hovertip(self.button, 'ToolTip text')

Callers

nothing calls this directly

Calls 6

is_tipwindow_shownMethod · 0.95
HovertipClass · 0.90
addCleanupMethod · 0.80
assertFalseMethod · 0.80
assertTrueMethod · 0.80
showtipMethod · 0.45

Tested by

no test coverage detected