Advertisement
k1alo

2?

Dec 6th, 2023
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. from tkinter import *
  2. from tkinter import ttk
  3.  
  4.  
  5. root = Tk()
  6. root.title("Hihihanki-hahanki")
  7. root.geometry("350x400")
  8.  
  9. for r in range(3):
  10.     for c in range(3):
  11.         button = ttk.Button(text=f"({r},{c})")
  12.         button.grid(row=r, column=c, ipadx=6, ipady=6, padx=4, pady=4)
  13.  
  14.  
  15.  
  16.  
  17. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement