(self)
| 347 | rgb((111, 78, 55)) |
| 348 | |
| 349 | def test_winfo_pathname(self): |
| 350 | t = tkinter.Toplevel(self.root) |
| 351 | w = tkinter.Button(t) |
| 352 | wid = w.winfo_id() |
| 353 | self.assertIsInstance(wid, int) |
| 354 | self.assertEqual(self.root.winfo_pathname(hex(wid)), str(w)) |
| 355 | self.assertEqual(self.root.winfo_pathname(hex(wid), displayof=None), str(w)) |
| 356 | self.assertEqual(self.root.winfo_pathname(hex(wid), displayof=t), str(w)) |
| 357 | self.assertEqual(self.root.winfo_pathname(wid), str(w)) |
| 358 | self.assertEqual(self.root.winfo_pathname(wid, displayof=None), str(w)) |
| 359 | self.assertEqual(self.root.winfo_pathname(wid, displayof=t), str(w)) |
| 360 | |
| 361 | def test_event_repr_defaults(self): |
| 362 | e = tkinter.Event() |
nothing calls this directly
no test coverage detected