1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
import tkinter as tk
root = tk.Tk()
root.title('PUZZLE')
canvas = tk.Canvas(root, width=400,height = 400,bg="grey60")
canvas.grid(row=0,column=0)
cadre = tk.Frame(root,bg="grey20")
cadre.grid(row=0,column =1,columnspan=1,sticky="nsew")
ButGo=tk.Button(cadre,text='GO !')
ButGo.grid(row=0,column=0,padx=100,sticky="ew")
ButGm=tk.Button(cadre,text='GM !')
ButGm.grid(row=1,column=0,sticky="we")
ButGp=tk.Button(cadre,text='GP !')
ButGp.grid(row=2,column=0,sticky="ew")
canvas2 = tk.Canvas(root, width = 400, height = 200,bg="grey40")
canvas2.grid(row=1,column=1) |
Partager