title: Color a Tkinter button in multiple colors
body: <p>I'm trying to put multiple colors on a single button in Tkinter. This is what I came up with:<br/><br/></p>
  
  <pre><code>from Tkinter import *
  master = Tk()
  buttons = {}
  
  def press(clicked):
      print clicked
      return
  for i in range(1,7):
      button_name = 'button '+str(i)
      buttons[i] = Button(master, text=button_name, command=lambda method=button_name:press(method))
      buttons[i].grid(row=0, column=i-1, padx=15)
      buttons[i].update()
  
      tot_x = buttons[i].winfo_width()
      tot_y = buttons[i].winfo_height()
  
      redframe = Frame(buttons[i], width=tot_x/6, background='red')
      blueframe = Frame(buttons[i], width=tot_x/6*5, background='blue')
  
      redframe.place(x=0, y=0, relheight=1)
      blueframe.place(relx=1./6, y=0, relheight=1)
  
  master.mainloop()
  </code></pre>
  
  <p>The problem is it that it makes buttons barely clickable because frames somehow interfere with "clickability" of the buttons. And also colored frames just disappear suddenly when the cursor is placed on their position. <br/><br/> Is there a way to make these frames stay on the buttons and to make them not stop a click?</p>