title: How to use tkinter tag_config? Python 3.7.3
body: <p>So I wanted to make a text editor and I've gotten stuck on this part, I want it to change the color of a certain word thats typed in in real time, for example: Lets say I type <em><strong>print</strong></em> I want it to automatically change the foreground color from the default black color to lets say blue. I Don't really know if you have to use <em><strong>tag_configure</strong></em> to do this but if so can someone please help me work it, thanks.</p>
  <p><strong>Code:</strong></p>
  <pre><code>from tkinter import *
  
  root = Tk()
  
  text = Text(root)
  text.grid(row=0)
  
  def Event(event):
      text.tag_configure(&quot;print&quot;, foreground=&quot;blue&quot;)
  
  #This is a KeyBind to trigger the Function: Event
  root.bind(&quot;&lt;Return&gt;&quot;, Event)
  
  root.mainloop()
  </code></pre>