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

Method test_pane

Lib/test/test_ttk/test_widgets.py:701–715  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

699 (str(child3), str(child2), str(child)))
700
701 def test_pane(self):
702 self.assertRaises(tkinter.TclError, self.paned.pane, 0)
703
704 child = ttk.Label(self.root)
705 self.paned.add(child)
706 self.assertIsInstance(self.paned.pane(0), dict)
707 self.assertEqual(self.paned.pane(0, weight=None),
708 0 if self.wantobjects else '0')
709 # newer form for querying a single option
710 self.assertEqual(self.paned.pane(0, 'weight'),
711 0 if self.wantobjects else '0')
712 self.assertEqual(self.paned.pane(0), self.paned.pane(str(child)))
713
714 self.assertRaises(tkinter.TclError, self.paned.pane, 0,
715 badoption='somevalue')
716
717 def test_sashpos(self):
718 self.assertRaises(tkinter.TclError, self.paned.sashpos, None)

Callers

nothing calls this directly

Calls 6

strFunction · 0.85
assertIsInstanceMethod · 0.80
paneMethod · 0.80
assertRaisesMethod · 0.45
addMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected