(self)
| 85 | |
| 86 | @requires_tk(8, 6, 6) |
| 87 | def test_tk_busy_with_cursor(self): |
| 88 | root = self.root |
| 89 | if root._windowingsystem == 'aqua': |
| 90 | self.skipTest('the cursor option is not supported on OSX/Aqua') |
| 91 | f = tkinter.Frame(root, name='myframe') |
| 92 | f.pack() |
| 93 | f.tk_busy_hold(cursor='gumby') |
| 94 | |
| 95 | self.assertEqual(f.tk_busy_cget('cursor'), 'gumby') |
| 96 | f.tk_busy_configure(cursor='heart') |
| 97 | self.assertEqual(f.tk_busy_cget('cursor'), 'heart') |
| 98 | self.assertEqual(f.tk_busy_configure()['cursor'][4], 'heart') |
| 99 | self.assertEqual(f.tk_busy_configure('cursor')[4], 'heart') |
| 100 | |
| 101 | f.tk_busy_forget() |
| 102 | errmsg = r"can(no|')t find busy window.*" |
| 103 | with self.assertRaisesRegex(TclError, errmsg): |
| 104 | f.tk_busy_cget('cursor') |
| 105 | |
| 106 | def test_tk_setPalette(self): |
| 107 | root = self.root |
nothing calls this directly
no test coverage detected