title: Setting a Default Value in an Entry box in Tkinter
body: <p>I'm creating an user input box using Tkinter in Python. I got the basic code from here: <a href="http://www.python-course.eu/tkinter_entry_widgets.php" rel="nofollow">http://www.python-course.eu/tkinter_entry_widgets.php</a></p>
  
  <p>Which provides:</p>
  
  <pre><code>from tkinter import *
  
  def show_entry_fields():
     print("First Name: %s\nLast Name: %s" % (e1.get(), e2.get()))
  
  master = Tk()
  Label(master, text="First Name").grid(row=0)
  Label(master, text="Last Name").grid(row=1)
  
  e1 = Entry(master)
  e2 = Entry(master)
  
  e1.grid(row=0, column=1)
  e2.grid(row=1, column=1)
  
  Button(master, text='Quit', command=master.quit).grid(row=3, column=0, sticky=W, pady=4)
  Button(master, text='Show', command=show_entry_fields).grid(row=3, column=1, sticky=W, pady=4)
  
  mainloop( )
  </code></pre>
  
  <p>and modified it for my purposes. My problem is setting a default variable inside the input. </p>
  
  <p>I have looked all over and it seems as though a common solution is using v = Tkinter.StringVar() and v.set("Default"). However, I am using integers so I changed it to this: </p>
  
  <pre><code>v = Tkinter.IntVar()
  e1 = Entry(master)
  v.set(pd.value_counts(df['month'].values, sort=False)[1])
  </code></pre>
  
  <p>where</p>
  
  <pre><code>In [29]: pd.value_counts(df['month'].values, sort=False)[1]
  Out[29]: 247
  </code></pre>
  
  <p>My code runs but there is no default in the input. </p>