title: Python 2.7 Tkinter how to change text color of a button's text
body: <p>button1 = Button(root,text='Revert image',foreground = "red",compound="center")</p>
  
  <p>This type of code is not working. it says  unknown option "-foreground".</p>
  
  <p>This is the whole code that works -</p>
  
  <pre><code>from Tkinter import *
  from ttk import *
  def change():
     label.config(text="Hey dude !!")
     label.config(image = img1,background='blue',foreground='yellow')
  def click():
           if button1.instate(["disabled"]):
                  label.config(image = img1,background='yellow',foreground='green')
                  button1.state(['!disabled'])
                  button.state(['disabled'])
           else:
                  label.config(image = img,background='yellow',foreground='green')
                  button1.state(['disabled'])
                  button.state(['!disabled'])
  root = Tk()
  label = Label(root)
  img=PhotoImage(file='C:\\Users\\Vivek\\Desktop\\x.gif')
  img1= PhotoImage(file='C:\\Users\\Vivek\\Desktop\\y.gif')
  img2 = PhotoImage(file='C:\\Users\\Vivek\\Desktop\\z.gif')
  button = Button(root)
  button.pack()
  button1 = Button(root,text='Revert image',compound="center")
  img2_small = img2.subsample(30,80)
  button.config(image=img2_small,text='Change image',compound='center')
  button1.state(["disabled"])
  button1.pack()
  label.pack()
  button.config(command=click)
  button1.config(command = click)
  label.config(image = img,background='yellow',foreground='green')
  label.config(text = 'Hey dude watsup ?? Are you in a need help ?')
  label.config(compound = 'left',wraplength=100,font=('Courier',20,'bold'))
  label.after(5000,change)
  root.mainloop()
  </code></pre>