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

Method create2

Lib/test/test_tkinter/test_geometry_managers.py:23–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21 test_keys = None
22
23 def create2(self):
24 pack = tkinter.Toplevel(self.root, name='pack')
25 pack.wm_geometry('300x200+0+0')
26 pack.wm_minsize(1, 1)
27 a = tkinter.Frame(pack, name='a', width=20, height=40, bg='red')
28 b = tkinter.Frame(pack, name='b', width=50, height=30, bg='blue')
29 c = tkinter.Frame(pack, name='c', width=80, height=80, bg='green')
30 d = tkinter.Frame(pack, name='d', width=40, height=30, bg='yellow')
31 return pack, a, b, c, d
32
33 def test_pack_configure_after(self):
34 pack, a, b, c, d = self.create2()

Calls 2

wm_geometryMethod · 0.80
wm_minsizeMethod · 0.80

Tested by

no test coverage detected