Outils pour utilisateurs

Outils du site


python:interface_graphique_tkinter:start

Ceci est une ancienne révision du document !


Table des matières

Interface graphique Tkinter

===== Hello world =====

from tkinter import *

fenetre = Tk()

texte1 = Label(fenetre, text='Hello world', fg='red')
texte1.pack()

bouton1 = Button(fenetre, text='Quitter', command = fenetre.destroy)
bouton1.pack()

fenetre.mainloop()

python/interface_graphique_tkinter/start.1570887170.txt.gz · Dernière modification : (modification externe)