[英]Trying to save entry and use it later in a label on a different frame with Tkinter and Python 3
I'm making a fill in the blank story.我正在填补空白的故事。 But I can't figure out how to make the entries then show up in the story.
但我不知道如何制作条目然后出现在故事中。 I think it has something to do with the fact that the entries and story are on different frames.
我认为这与条目和故事在不同框架上的事实有关。
#the entry
promt1 = Label(template_screen,text="1. Noun:",).grid(row=1, column=1, sticky=NW)
word1= Entry(template_screen, text=" ").grid(row=2, column=1, sticky=NW, padx=10, pady=5)
#the label
story_w1 = Label(story_screen, textvariable=get(word1)).pack()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.