官方文档:tkinter —— Tcl/Tk 的 Python 接口 — Python 3.10.3 文档
组件的文档:Tkinter 8.5 reference: a GUI for Python
1、理解每个模块调用的父类能够更好的理解Tkinter的结构
2、如何更好的学习和了解它的每个Widgets
我在官方文档找到了建议
To find out what configuration options are available on any widget, call its configure()
method, which returns a dictionary containing a variety of information about each object, including its default and current values. Use keys()
to get just the names of each option.
实例
from tkinter import *
from