title: Having problems with making a chat in python
body: <p>So basically I am trying to make a chat using python and I want to make a GUI for it using tkinter, I run the code and everything is normal everything except my GUI, it should be showing the name of the one who sends the message and the message itself but instead of that it's showing {self.name}:{self.msg} and here is the code:</p>
  <pre><code>def sendMessage(self):
          self.textCons.config(state=DISABLED)
          while True:
                message = &quot;{self.name}: {self.msg}&quot;
                client.send(message.encode(FORMAT))
                break
  </code></pre>