Exemple d’utilisation de widget ‘Entry’

Author:

 tkinter
{filelink=15413}

from Tkinter import *
 
top = Frame(  )
top.pack(  )
 
# Création d'un widget Entry
ent = Entry(top)
 
# Définir un texte par défaut
ent.insert(0, 'Tapez un texte ici')
 
ent.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 *


six − = 2