So I have this example code:
Import tkinter as tk
window = tk.Tk()
def showText(myText):
label = tk.Label(window, text=myText)
label.pack()
button = tk.Button(window, text="Press me", command=showText("Hello World"))
button.pack()
window.mainloop()
If I run this, the label would be displayed instantly, how can I achieve the same result, but have the label with the myText parameter displayed after the button press?