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>Use the entry widget's function, <code>.insert()</code> and <code>.delete()</code>. Here is an example. </p>

<pre><code>entry = tk.Entry(root)
entry.insert(END, "Hello") # this will start the entry with "Hello" in it
# you may want to add a delay or something here. 
entry.delete(0, END) # this will delete everything inside the entry
entry.insert(END, "WORLD") # and this will insert the word "WORLD" in the entry.
</code></pre>

<p>Another way to do this is with the Tkinter StrVar. Here is an example of using the str variable. </p>

<pre><code>entry_var = tk.StrVar()
entry_var.set("Hello")
entry = tk.Entry(root, textvariable=entry_var) # when packing the widget
# it should have the world "Hello" inside.
# here is your delay or you can make a function call.
entry_var.set("World") # this sets the entry widget text to "World"
</code></pre>

python tkinter