# -*- coding: utf-8 -*- from tkinter import* from random import randrange import time fen = Tk() fen.geometry("500x500") Lbl_titre = Label(text = "Bienvenue au Super Simon") Lbl_titre.place(x=100,y=10) Lbl_ordi = Label(text="Ordinateur") Lbl_ordi.place(x=60,y=30) Lbl_ordiR = Label(bg="red",width=9,height=4) Lbl_ordiR.place(x=20,y=60) Lbl_ordiJ = Label(bg="yellow",width=9,height=4) Lbl_ordiJ.place(x=100,y=60) Lbl_ordiV = Label(bg="green",width=9,height=4) Lbl_ordiV.place(x=20,y=140) Lbl_ordiB = Label(bg="blue",width=9,height=4) Lbl_ordiB.place(x=100,y=140) Lbl_separ = Label(bg="black",width=1,height=13) Lbl_separ.place(x=180,y=30) Bt_joueurR = Button(bg="red",width=9,height=4) Bt_joueurR.place(x=200,y=60) Bt_joueurJ = Button(bg="yellow",width=9,height=4) Bt_joueurJ.place(x=280,y=60) Bt_joueurV = Button(bg="green",width=9,height=4) Bt_joueurV.place(x=200,y=140) Bt_joueurB = Button(bg="blue",width=9,height=4) Bt_joueurB.place(x=280,y=140) def ordi(): nouveau = 1 time.sleep(1) print("nouveau",nouveau) if nouveau == 1: Lbl_ordiR_new = Label(bg="#FF6262",width=9,height=4) Lbl_ordiR_new.place(x=20,y=60) time.sleep(1) #Lbl_ordiR = Label(bg="red",width=9,height=4) #Lbl_ordiR.place(x=20,y=60) ordi()