, 20), width=10, height=4, wraplength=50, justify="left", anchor="center")
label.pack() # 加载、显示标签
按钮控件...# 绑定事件,点击按钮控制台输出语句
btn1 = tkinter.Button(win, text="点击1", command=f, width=10, height=2)
btn1.pack()...,用于显示简单的文本内容
entry = tkinter.Entry(win, show="*") # show="*" 密文显示
entry.pack()
输入控件 II
# 为控件绑定变量...btn.pack()
带滚动条的 Text 控件
t = tkinter.Text(win, width=60, height=10)
sc = tkinter.Scrollbar() # 滚动条...=tkinter.Y)
# 关联文本框和滚动条
sc.config(command=t.yview)
t.config(yscrollcommand=sc.set)
s = '''Everyone