3 from pprint
import pprint
8 l
=tk
.Label(r
, name
="a_label")
11 class MyGrid(tk
.Grid
):
12 def __init__(self
, *args
, **kwargs
):
13 kwargs
['editnotify']= self
.editnotify
14 tk
.Grid
.__init
__(self
, *args
, **kwargs
)
15 def editnotify(self
, x
, y
):
18 g
= MyGrid(r
, name
="a_grid",
23 g
.set(x
,y
,text
=str((x
,y
)))
25 c
= tk
.Button(r
, text
="Close", command
=r
.destroy
)