【发布时间】:2020-10-18 14:43:32
【问题描述】:
import tkinter as tk
root = tk.Tk()
root.state('zoomed')
text1 = tk.Text(state=tk.DISABLED)
scroll = tk.Scrollbar(root, command=text1.yview)
text1.configure(yscrollcommand=scroll.set)
text1.grid(row=1, column=1, sticky='we')
scroll.grid(row=1, column=2, sticky="nse")
root.mainloop()
如何让文本框填满 X 轴? (sticky='we' 对我不起作用)
【问题讨论】: