| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 
 | 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() | 
Partager