MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _test

Function _test

tools/python-3.11.9-amd64/Lib/tkinter/__init__.py:4642–4660  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4640
4641
4642def _test():
4643 root = Tk()
4644 text = "This is Tcl/Tk %s" % root.globalgetvar('tk_patchLevel')
4645 text += "\nThis should be a cedilla: \xe7"
4646 label = Label(root, text=text)
4647 label.pack()
4648 test = Button(root, text="Click me!",
4649 command=lambda root=root: root.test.configure(
4650 text="[%s]" % root.test['text']))
4651 test.pack()
4652 root.test = test
4653 quit = Button(root, text="QUIT", command=root.destroy)
4654 quit.pack()
4655 # The following three commands are needed so the window pops
4656 # up on top on Windows...
4657 root.iconify()
4658 root.update()
4659 root.deiconify()
4660 root.mainloop()
4661
4662
4663__all__ = [name for name, obj in globals().items()

Callers 1

__init__.pyFile · 0.70

Calls 7

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

Tested by

no test coverage detected