import tkinter as tk
from tkinter import ttk
import datetime

month=(datetime.date.today()).strftime("%B") # get current MONTH

window=tk.Tk()
window.title(month) # title is current MONTH
content=tk.StringVar()

btn=[]  #  button list
entries=[]  #  list to fill from entry widget
count=len(entries)
entry=ttk.Entry(window, textvariable=content)
entry.grid(row=0,column=0)

def clear_entry():
    entry.delete(0,'end')

def add():
    global content
    cOntent=content.get()
    entries.append(cOntent)
    global count
    for i in range(len(entries)):
        btn.append(ttk.Button(window,text=cOntent,
        command=lambda i=i :done()))

        def done():
            btn.append(ttk.Button(window,text=cOntent+" DONE",
                state='disabled'))
            btn[-1].grid(row=count+1,column=0,sticky='nsew')

        btn[-1].grid(row=count+2,column=0,sticky='nsew')
    count += 1
    clear_entry()
    print(entries[0:(len(entries))],len(entries))
    #print(window.grid_slaves(),cOntent)


add=tk.Button(window,text='Add',command=add)
add.grid(row=1,column=0)
window.mainloop()