How do I set the width of an Tkinter Entry widget in pixels?

rectangletangle picture rectangletangle · Jul 30, 2011 · Viewed 22.8k times · Source

I noticed that the width argument for the Tkinter entry widget is in characters, not pixels.

Is it possible to adjust the width in pixels?

Answer

noob oddy picture noob oddy · Aug 1, 2011

You can also use the Place geometry manager:

entry.place(x=10, y=10, width=100) #width in pixels