如何设置 tkinter 窗口(大小 500x500)的坐标,使 (0,0) 点位于左下方,而 (500x500) 位于右上方?谷歌并没有太多帮助。
def graphDisplay(distance, elevation):
'''draws up the graph.'''
#creates a window
root = Tk()
#sets the name of the window
root.title("Graph")
#sets the size of the window
root.geometry("500x500")
#sets the background of the window
root.configure(background='green')
#create a canvas object to draw the circle
canvas = Canvas(root)
#runs the program until you click x
root.mainloop