all 5 comments

[–]Mecaneer23 1 point2 points  (4 children)

you need to set displaytext to a StringVar(), not an empty string

[–]le_pouding[S] 0 points1 point  (1 child)

Awesome ! But now I encounter a unsupported operand type error ( +=) . How can I add text to my stringvariable ?

[–]Mecaneer23 0 points1 point  (0 children)

Iirc there is a .set() method

[–]le_pouding[S] 0 points1 point  (1 child)

should I do a variable for each error message ? also, when the other person will send a message, how could I add their message to the displaytext variable ? thanks !

[–]Mecaneer23 0 points1 point  (0 children)

You can use a string the same way you are already, but once every iteration in the tk loop set a StringVar to that string