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