GUI: Création d’un conteneur avec des widgets à l’aide de ‘Tkinter’

Author:

 tkinter
{filelink=15406}

 
from Tkinter import *               
 
def msg(  ):
    print 'Bienvenu sur python graphique'
 
top = Frame(  )                     # Création d'un conteneur
top.pack(  )
Label(top,  text="Et le python..").pack(side=TOP)
push = Button(top, text="Cliquez ici", command=msg)
push.pack(side=BOTTOM)
top.mainloop(  )

Livres Sur ce Sujet

Apprendre à programmer avec Python 3 Apprenez à programmer en Python Python : Petit guide à l’usage du développeur agile Apprendre à programmer avec Python 3 : Avec plus de 50 pages de corigés d’exercices !

Leave a Reply

Your email address will not be published. Required fields are marked *


× 8 = seventy two