]>
vault307.fbx.one Git - mu_code.git/blob - loopTest.py
5 files
=['bill1','bill2']
9 files.append("Button"+str(i))"""
20 for i
in range(len(files
)):
21 btn
.append(Button(root
,text
=files
[i
],
22 command
=lambda c
=i
: print(btn
[c
].cget("text"))))
25 tYpe
=Entry(root
,textvariable
=content
)
27 filebtn
=Button(root
,text
='add',command
=addTofiles
)
30 optionsmenu
=Menu(root
,tearoff
=0)
31 optionsmenu
.add_command(label
='exit',command
=root
.quit
)
32 menubar
.add_cascade(label
='options',menu
=optionsmenu
)
33 root
.config(menu
=menubar
)