I'm creating an user input box using Tkinter in Python. I got the basic code from here: <http://www.python-course.eu/tkinter_entry_widgets.php>

Which provides:

```
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( )

```

and modified it for my purposes. My problem is setting a default variable inside the input. 

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: 

```
v = Tkinter.IntVar()
e1 = Entry(master)
v.set(pd.value_counts(df['month'].values, sort=False)[1])

```

where

```
In [29]: pd.value_counts(df['month'].values, sort=False)[1]
Out[29]: 247

```

My code runs but there is no default in the input.