PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` from Tkinter import * # This is a program that tests the placer geom manager def do_motion(event): app.button.place(x=event.x, y=event.y) def dothis(): print 'calling me!' def createWidgets(top): # make a frame. Note that the widget is 200 x 200 # and the window containing is 400x400. We do this # simply to show that this is possible. The rest of the # area is inaccesssible. f = Frame(top, width=200, height=200, background='green') # place it so the upper left hand corner of # the frame is in the upper left corner of # the parent f.place(relx=0.0, rely=0.0) # now make a button f.button = Button(f, foreground='red', text='amazing', command=dothis) # and place it so that the nw corner is # 1/2 way along the top X edge of its' parent f.button.place(relx=0.5, rely=0.0, anchor=NW) # allow the user to move the button SUIT-style. f.bind('', do_motion) return f root = Tk() app = createWidgets(root) root.geometry("400x400") root.maxsize(1000, 1000) root.mainloop()