title: Label Tkinter Issue
body: <p>So I have been wanting to make a timer using tkinter that will go on for a particular period of time.
  The code seems to be working fine and I am getting the output too, but for some reason, if I am resizing or moving the window, the timer pauses by itself and resumes automatically when the resizing is done. If the window is destroyed before the timer ends, I am getting error that reads</p>
  <pre><code>Traceback (most recent call last):
    File &quot;countdownclock.py&quot;, line 23, in &lt;module&gt;
      timer()
    File &quot;countdownclock.py&quot;, line 16, in timer
      label.config(text = '{:02d}:{:02d}'.format(mins,secs))
    File &quot;C:\Program Files\Python39\lib\tkinter\__init__.py&quot;, line 1646, in configure
      return self._configure('configure', cnf, kw)
    File &quot;C:\Program Files\Python39\lib\tkinter\__init__.py&quot;, line 1636, in _configure
      self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
  _tkinter.TclError: invalid command name &quot;.!label&quot;
  </code></pre>
  <p>Below is the code I am using.
  The program is meant to run for 2 minutes</p>
  <pre><code>from tkinter import * 
  from tkinter.ttk import *
  import time
  
  root = Tk()
  root.title(&quot;Clocky&quot;)
  
  label = Label(root, font=(&quot;screaming-neon&quot;,45),background = &quot;black&quot;, foreground = &quot;cyan&quot;)
  label.pack(anchor=&quot;center&quot;)
  
  def timer():
      mins = 0
      secs = 0
      while mins&lt;2:
          #clocktime = '{:02d}:{:02d}'.format(mins,secs)
          label.config(text = '{:02d}:{:02d}'.format(mins,secs))
          time.sleep(1)
          secs = secs+1
          if secs==60:
              secs=0
              mins=mins+1
          root.update()
  timer()
  mainloop()
  </code></pre>
  <p>Thank you for your help</p>