I'm making an interactive map for my class, using Zelle's graphics.py . I got the map , and the data all set, but I can't figure out how to get the graphics window to update and draw new objects (route markers) on the map, after recieving user input. I've tried using a for loop and doing the update() method, no luck. Once the window is up, I'm supposed to get user input and the map is supposed to reflect that, and I can't figure out that last little bit.
from graphics import *
win = GraphWin("map" , 500,500)
win.setBackground("black")
textbox = Entry(Point(250,250),10)
textbox.draw(win)
text = textbox.getText()
if text == "hello":
line = Line (Point(100,100), Point(200,100))
line.draw(win)
win.getMouse()
win.close()
So once the desired User input is recieved how do i get the changes to show up on screen?