__zero__

useless for tkinter

Oct 20th, 2018
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. # Python 3
  2.  
  3. from tkinter import *
  4.  
  5. app = Tk()
  6. app.title("usefull")
  7. c = [i for i in range(15)]
  8. for i in c:
  9.     Label(text=f"{i}").grid(column=int(f"{i+1}"), row=int(f"{i}"))
  10.     Button(text=f"{i}").grid(column=int(f"{i}"), row=int(f"{i}"))
  11.    
  12. app.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment