【发布时间】:2019-01-18 13:15:48
【问题描述】:
我无法通过单击按钮将相同的数据从一帧发送到另一帧 tkinter/python 如何使用 tkinter 将文本从一帧传输到另一帧
from tkinter import *
root = Tk()
frame = Frame(root, width=1000, height=1000)
frame.pack()
tbox1 = Text(frame)
tbox1.place(x=0, y=0, height=400, width=600)
tbox2 = Text(frame)
tbox2.place(x=0, y=400, height=1000, width=1000)
tbox3 = Text(frame)
tbox3.place(x=500, y=0, height=400, width=500)
button1 = Button(frame, text='Check', width="20", height="3", font='helvetica 20', bg="green",
command=lambda: set(tbox1))
button1.place(x=700, y=700, height=30, width=100)
root.mainloop()
【问题讨论】: