This commit is contained in:
Xevion
2019-07-25 22:21:56 -06:00
parent 4d47e92610
commit 5948e26c4e
25 changed files with 1139 additions and 0 deletions

16
dynamic.py Normal file
View File

@@ -0,0 +1,16 @@
from tkinter import *
from functools import partial
import string
buttons = list(string.printable)
print(buttons)
root = Tk()
def txt(text):
print(text)
for b in buttons:
btn = Button(root, text=b, command=partial(txt, b))
btn.pack(side=LEFT,pady=5)
root.mainloop()