Search this site
Embedded Files
Mon Python pas à pas
  • Accueil
  • INSTRUCTIONS
  • METHODES
  • MODULES
  • LOGITHEQUE
Mon Python pas à pas
  • Accueil
  • INSTRUCTIONS
  • METHODES
  • MODULES
  • LOGITHEQUE
  • More
    • Accueil
    • INSTRUCTIONS
    • METHODES
    • MODULES
    • LOGITHEQUE

⇨ MENU ⇨ MODULES ⇨ tkinter ⇨ liste des attributs

tkinter.text

DESCRIPTION.


Définit ou retourne le texte du controle.




SYNTAXE.


text = chaine




REMARQUE.


chaine est un str ( ) quelconque.

 



EXEMPLE.



import tkinter



def FNC_Modifier ( ) : 

LAB_Message [ "text" ] = ENT_Message.get ( )

ENT_Message.delete ( 0 , "end" )



TKI_Principal = tkinter.Tk ( )


BUT_Quitter = tkinter.Button ( TKI_Principal , text = "Quitter" , command = TKI_Principal.destroy )

BUT_Transfere = tkinter.Button ( TKI_Principal , text = "Transfèrer" , command = FNC_Modifier )

ENT_Message = tkinter.Entry ( TKI_Principal )

LAB_Message = tkinter.Label ( TKI_Principal )


ENT_Message.pack ( fill = "both" )

BUT_Transfere.pack ( fill = "both" )

LAB_Message.pack ( fill = "both" )

BUT_Quitter.pack ( fill = "both" )


ENT_Message.focus_force ( )


TKI_Principal.mainloop ( )


Votre aide est précieuse pour améliorer ce site, alors n'hésitez pas à faire part de

vos remarques, vos commentaires et de vos suggestions. 

Google Sites
Report abuse
Page details
Page updated
Google Sites
Report abuse