Tk Source Code

Artifact [eb8dbe1c]
Login

Artifact eb8dbe1c759866b83a95aae0a7f6ffc6ea418291145612e38d3cc7e481aa18fb:

Attachment "erictest.py" to ticket [290ce5f4] added by anonymous 2022-07-28 18:32:24. (unpublished)
#!/usr/bin/python3

from tkinter import Tk, N, S, W, E, ttk
#import time
#start = time.time()

root = Tk()

for i in range(20):
    for j in range(20):
        disp = str(i*20+j)
        ttk.Button(root, name=disp, text=disp).grid(row=i, column=j, sticky=N + S + W + E)

#root.mainloop()
#root.update_idletasks()
root.update()
#end = time.time()
#print(end - start)