Change default tkinter entry value in python
<pre><code>checkLabel = ttk.Label(win,text = "  Check Amount  ", foreground = "blue")
checkLabel.grid(row = 0 , column = 1)
checkEntry = ttk.Entry(win, textvariable = checkVariable)
checkEntry.grid(row = 1, column = 1, sticky = 'w')
</code></pre>

<p>How do I change the defualt entry field from displaying 0?</p>

<p>Set the value of <code>checkVariable</code> to <code>''</code> (the empty string) before you create the <code>Entry</code> object? The statement to use would be</p>

<pre><code>checkVariable.set('')
</code></pre>

<p>But then <code>checkVariable</code> would have to be a <code>StringVar</code>, and you would have to convert the input value to an integer yourself if you wanted the integer value.</p>

python tkinter