]>
vault307.fbx.one Git - mu_code.git/blob - monthlyCheckList2.py
2 from tkinter
import ttk
5 month
=(datetime
.date
.today()).strftime("%B") # get current MONTH
8 window
.title(month
) # title is current MONTH
12 entries
=[] # list to fill from entry widget
14 entry
=ttk
.Entry(window
, textvariable
=content
)
15 entry
.grid(row
=0,column
=0)
23 entries
.append(cOntent
)
25 for i
in range(len(entries
)):
26 btn
.append(ttk
.Button(window
,text
=cOntent
,
27 command
=lambda i
=i
:done()))
30 btn
.append(ttk
.Button(window
,text
=cOntent
+" DONE",
32 btn
[-1].grid(row
=count
+1,column
=0,sticky
='nsew')
34 btn
[-1].grid(row
=count
+2,column
=0,sticky
='nsew')
37 print(entries
[0:(len(entries
))],len(entries
))
38 #print(window.grid_slaves(),cOntent)
41 add
=tk
.Button(window
,text
='Add',command
=add
)
42 add
.grid(row
=1,column
=0)