I have this code for a game using a Tkinter-based GUI:
startGame()
win=Tkinter.Tk()
win.title("TREASURE QUEST!!")
Textlabel=Tkinter.Label\
(win,text = text1,font=('Times New Roman',12),wraplength=600,)
Textlabel.pack()
Row2=Tkinter.Frame(win)
Btn1=Tkinter.Button\
(Row2, text=button1Name, command= button1(),font=('Times New Roman',12))
Btn2=Tkinter.Button\
(Row2, text=button2Name, command= button2(), font=('Times New Roman',12))
Btn1.pack(side='left')
Btn2.pack(side='left')
Row2.pack()
win.mainloop()
def startGame():
global text1,button1,button1Name,button2,button2Name
##adds name
##button that calls StoryCard
text1="Welcome to Treasure Quest!!"
button1=introCard
button1Name="Play"
button2=kill
button2Name="Quit"
When the button is pushed that calls the function however, the screen does not redraw and call up the new variables and just displays the old text. Why? How do I fix it?