Bonjour, pourriez-vous me dire svp comment faire pour surligner une partie d'un texte. Ici je voudrais surligner messages1 et non messages2 :
Cordialement,
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 messages1 = ("Définition : ") messages2 = ("BlablablaBlablablaBlablablaBlablablaBlablablaBlablablaBlablablaBlablablaBlablabla") helv37 = tkFont.Font(family='@Malgun Gothic Semilight', size=14, weight='bold', underline=1) text = Text(fInfos, bg="midnight blue", fg="white", font=helv37) text.insert(INSERT, messages1) text.configure(wrap='word')#, underline=True) text.insert(INSERT, messages2) text.pack()
Arsène
Partager