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(  )