Hi,
I would like to color two character strings written in a Text tkinter widget according to the status of a check button (check mark or no check).
for example, suppose that I have two variables A and B; each contains a string of characters such that:
A="approved operation"
B="not approved operation"
and that when the checkbutton button is:
* checkmarked, it is the variable A which is written with a green color.
* not checkmarked, it is the chain B which is written with a brown color
if I click on the save button, a paragraph with the heading is the variable A, or the variable B (depending on the state of the checkbuton) is added to the content of the tkinter Text widget.
As you see these strings of character (A or B) are not fixed on a precise line in the content of the Text widget , but are written each time I click on the button save
thanks for help
I would like to color two character strings written in a Text tkinter widget according to the status of a check button (check mark or no check).
for example, suppose that I have two variables A and B; each contains a string of characters such that:
A="approved operation"
B="not approved operation"
and that when the checkbutton button is:
* checkmarked, it is the variable A which is written with a green color.
* not checkmarked, it is the chain B which is written with a brown color
if I click on the save button, a paragraph with the heading is the variable A, or the variable B (depending on the state of the checkbuton) is added to the content of the tkinter Text widget.
As you see these strings of character (A or B) are not fixed on a precise line in the content of the Text widget , but are written each time I click on the button save
thanks for help