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

Method test_tk_busy_with_cursor

Lib/test/test_tkinter/test_misc.py:87–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 8

skipTestMethod · 0.80
tk_busy_holdMethod · 0.80
tk_busy_cgetMethod · 0.80
tk_busy_configureMethod · 0.80
tk_busy_forgetMethod · 0.80
assertRaisesRegexMethod · 0.80
packMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected