message entry box at center

asit lipun4u at gmail.com
Thu Feb 28 12:43:28 EST 2008


On Feb 28, 7:53 pm, Peter Otten <__pete... at web.de> wrote:
> asit wrote:
> > i want to show the entry button at the center of the window. How is it
> > possible ??
> > from Tkinter import *
>
> > def callback():
> > print e.get()
>
> > master=Tk()
> > e=Entry(master)
>
> e.pack(expand=True)
>
> > e.focus_set()
>
> > b=Button(master,text="get",width=10,command=callback)
> > b.pack(anchor=CENTER)
>
> > master.mainloop()
>
> For more complex layouts have a look at the grid geometry manager.
>
> Peter

but here there is another problem. there is a huge gap between get
button and message entry button when maximized.

pl z help. !!



More information about the Python-list mailing list