message entry box at center

asit lipun4u at gmail.com
Thu Feb 28 08:52:48 EST 2008


from Tkinter import *


def callback():
print e.get()


master=Tk()
e=Entry(master)
e.pack(anchor=CENTER)
e.focus_set()


b=Button(master,text="get",width=10,command=callback)
b.pack(anchor=CENTER)

master.mainloop()


i want to show the entry button at the center of the window. How is it
possible ??



More information about the Python-list mailing list