title: Crossfading between label colors over time in tkinter?
body: <p>What would be a way I could implement a fade over time between two colors for the background of a label in Tkinter? <em>I want the color of a label for my timer to change as it counts down.</em> These are the snippets I'm working with currently, (to clarify what I'm doing).</p>
  
  <pre><code>…
  
  labelcolor = "#%02x%02x%02x" % (0, 0, 0)
  
  …
  
  def pomodoro(self, remaining = None):
      self.button.configure(state=tk.DISABLED)
      self.labelcolor = "#%02x%02x%02x" % (200, 32, 32)
      self.label.configure(bg = self.labelcolor)
      if remaining is not None:
          self.remaining = remaining
  
      if self.remaining &lt;= 0:
          self.label.configure(text="Time's up!")
          self.breakcommand
      else:
          self.label.configure(text= time.strftime('%M:%S', time.gmtime(self.remaining))) #Integer to 'Minutes' and 'Seconds'
          self.remaining = self.remaining - 1
          self.after(1000, self.pomodoro)
  
  …
  
  self.label = tk.Label(self, text="Pick One", width=12, font="Helvetica 32", fg = "white", bg = self.labelcolor )
  
  …
  </code></pre>