title: How to create a function to delete a character in a label tkinter python?
body: <p>I'm about to finish a calculator in tkinter python. One of the last things I need to do is create a button which will delete one character at a time from the label. I've already created a button which will clear everything, but there all I did was var.set(&quot; &quot;) to essentially replace everything with a space. I'm not sure how to make a function which will delete 1 character at a time which is what I need to do.
  This is the code for the button so far. I tried inserting a backspace but realised that wouldn't work.</p>
  <pre><code>delete = Button(e, text = &quot;C&quot;,width=4, command = lambda: insert(&quot;\b&quot;), font = &quot;Helvetica 50&quot;,highlightbackground='#737373')
  delete.place(x = 228, y = 301)
  </code></pre>
  <p>Any help on how to create a function like this is appreciated.</p>