I am using Tkinter in a programming assignment and have the following problem. I want the user to enter the value in a textbox, and I want to add additional fields on the GUI based on the number entered in the textbox when he/she clicks the submit-button.
我试图将代码放在显示器(Text)的功能内,在提交书-布顿受到压力时,该功能被称作;然而,我在窗户装满时,就把我放在该功能内的与全球倡议有关的代码装上。
import tkinter
#When user clicks on button
def displayText():
#DO CHANGE IN GUI
root = tkinter.Tk()
button = tkinter.Button(root, text="Submit", command=displayText())
button.pack()
root.mainloop()