from tkinter import *
from tkinter import ttk

class CitationGenerator(Frame):
    def __init__(self, parent):
        Frame.__init__(self, parent)
        self.parent = parent
        self.initUI()

    def initUI(self):
        self.parent.title("Citation Generator")
        self.pack(fill=BOTH, expand=True)

        self.columnconfigure(1, weight=1)
        self.columnconfigure(3, pad=7)
        self.rowconfigure(3, weight=1)
        self.rowconfigure(5, pad=7)

        lbl = Label(self, text="Author")
        lbl.grid(sticky=W, pady=4, padx=5)

        author = Entry(self)
        author.grid(row=1, column=1, columnspan=2, rowspan=1, padx=5, sticky=E+W+S+N)

        lbl = Label(self, text="Title")
        lbl.grid(sticky=W, pady=4, padx=5)

        title = Entry(self)
        title.grid(row=2, column=1, columnspan=2, rowspan=1, padx=5, sticky=E+W+S+N)

        lbl = Label(self, text="Year")
        lbl.grid(sticky=W, pady=4, padx=5)

        year = Entry(self)
        year.grid(row=3, column=1, columnspan=2, rowspan=1, padx=5, sticky=E+W+S+N)

        lbl = Label(self, text="Publisher")
        lbl.grid(sticky=W, pady=4, padx=5)

        publisher = Entry(self)
        publisher.grid(row=4, column=1, columnspan=2, rowspan=1, padx=5, sticky=E+W+S+N)

        lbl = Label(self, text="Place")
        lbl.grid