Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- from tkinter import ttk
- root = Tk()
- root.title("Hihihanki-hahanki")
- root.geometry("350x400")
- for r in range(3):
- for c in range(3):
- button = ttk.Button(text=f"({r},{c})")
- button.grid(row=r, column=c, ipadx=6, ipady=6, padx=4, pady=4)
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement