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

Function _test

Lib/tkinter/__init__.py:5074–5092  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5072
5073
5074def _test():
5075 root = Tk()
5076 text = "This is Tcl/Tk %s" % root.globalgetvar('tk_patchLevel')
5077 text += "\nThis should be a cedilla: \xe7"
5078 label = Label(root, text=text)
5079 label.pack()
5080 test = Button(root, text="Click me!",
5081 command=lambda root=root: root.test.configure(
5082 text="[%s]" % root.test['text']))
5083 test.pack()
5084 root.test = test
5085 quit = Button(root, text="QUIT", command=root.destroy)
5086 quit.pack()
5087 # The following three commands are needed so the window pops
5088 # up on top on Windows...
5089 root.iconify()
5090 root.update()
5091 root.deiconify()
5092 root.mainloop()
5093
5094
5095__all__ = [name for name, obj in globals().items()

Callers 1

__init__.pyFile · 0.70

Calls 7

TkClass · 0.85
LabelClass · 0.70
ButtonClass · 0.70
packMethod · 0.45
configureMethod · 0.45
updateMethod · 0.45
mainloopMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…