Is there an option to edit the padding inside of a Tkinter EntryBox?
<p>Is there an option to edit the padding inside of a Tkinter EntryBox? So that the text that the user inputs starts e.g. 10px from the left border.</p>

<p>Technically, yes if you are using <code>.grid()</code>. </p>

<p>Using:</p>

<pre><code>grid(ipadx=HORIZONTAL-PADDING, ipady=VERTICAL-PADDING)
</code></pre>

<p>Is what the documentation says, however it doesn't seem to dictate how the text bbehaves. I can only get it to work for <code>ipady</code>. <code>ipadx</code> seems to just add extra padding to extend the width of the Entry widget without the text moving right.</p>

<pre><code>import tkinter as tk

root = tk.Tk()
entry = Entry(root)
entry.grid(row=0,column=0,ipadx=10)

root.mainloop()
</code></pre>

<p>Reference:
<a href="http://effbot.org/tkinterbook/grid.htm" rel="nofollow">http://effbot.org/tkinterbook/grid.htm</a></p>

python tkinter