bonjour tout le monde
je voudrais mettre une image dans le cadre Frame pouvais vous m'aider svp merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 Mafenetre = Tk() Mafenetre.title('Jeux de haha') Mafenetre.geometry("1400x850+100+100") Texte = StringVar() # Création d'un widget Canvas (zone graphique) Canevas = Canvas(Mafenetre, width = 1000, height = 850, bg ='white') Frame1 = Frame(Mafenetre,borderwidth=2,relief=GROOVE) Frame1.pack(padx=100,pady=100) # création d'un widget Label et d'un widget Button dans un widget Frame Label(Frame1,text="JEU DE L OIE").pack(padx=10,pady=10) Button(Frame1,text="START",fg='navy',command=haha).pack(padx=100,pady=100) Mafenetre.mainloop()
Partager