(self)
| 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') |
nothing calls this directly
no test coverage detected