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

Method test_element_create_vsapi_3

Lib/test/test_ttk/test_style.py:297–310  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

295 self.assertEqual(pin.winfo_reqheight(), 16)
296
297 def test_element_create_vsapi_3(self):
298 style = self.style
299 if 'xpnative' not in style.theme_names():
300 self.skipTest("requires 'xpnative' theme")
301 style.element_create('headerclose', 'vsapi', 'EXPLORERBAR', 2, [
302 ('pressed', 3),
303 ('active', 2),
304 ('', 1)])
305 style.layout('Explorer.CloseButton',
306 [('Explorer.CloseButton.headerclose', {'sticky': 'news'})])
307 b = ttk.Button(self.root, style='Explorer.CloseButton')
308 b.pack(expand=True, fill='both')
309 self.assertEqual(b.winfo_reqwidth(), 16)
310 self.assertEqual(b.winfo_reqheight(), 16)
311
312 def test_theme_create(self):
313 style = self.style

Callers

nothing calls this directly

Calls 8

theme_namesMethod · 0.80
skipTestMethod · 0.80
element_createMethod · 0.80
layoutMethod · 0.80
winfo_reqwidthMethod · 0.80
winfo_reqheightMethod · 0.80
packMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected