from pprint import pprint
l=tk.Label(r, name="a_label")
def __init__(self, *args, **kwargs):
kwargs['editnotify']= self.editnotify
tk.Grid.__init__(self, *args, **kwargs)
def editnotify(self, x, y):
g = MyGrid(r, name="a_grid",
g.set(x,y,text=str((x,y)))
c = tk.Button(r, text="Close", command=r.destroy)