In this example, that I used from http://effbot.org/tkinterbook/tkinter-events-and-bindings.htm, how could you pass in more variables to the function callback. Say you wanted to pass in a dict that you created and use that dict, how could you do that without calling global variables.
from Tkinter import *
root = Tk()
def callback(event):
print "clicked at", event.x, event.y
frame = Frame(root, width=100, height=100)
frame.bind("<Button-1>", callback)
frame.pack()
root.mainloop()
Newb here, might have some awkward phrasing, feel free to ask for clarification.