title: Tkinter Text Box (Randomly/Alternatively Change Foreground Color of text box of Tkinter)
body: <pre><code>#Text Frame
  
  TextFrame = Frame(win, bg=&quot;#003030&quot;)
  TextFrame.pack(fill=BOTH, expand=True)
  
  #Create a Text Box
  
  TextBox = Text(TextFrame)
  TextBox.pack(side=&quot;bottom&quot;, fill=BOTH, expand=True)
  
  #Color Picker
  choose = [&quot;#ff0000&quot;, &quot;#0000ff&quot;]
  
  color = choice(choose)
  
  #Button Function
  
  def render():
      global color
      from tkinter import Text
      input = (TextBox.get(&quot;1.0&quot;,'end-1c')) #Takes input from the Text Box
      win2 = Toplevel()
      win2.attributes(&quot;-fullscreen&quot;, True)
  
  
      TextFull = Text(win2, font=&quot;Ubuntu 14&quot;,**fg=choice(choose)**, bg=&quot;black&quot;)
      TextFull.insert(0.0,input) #Displays Input from first window to second window
      TextFull.pack(fill=BOTH, expand=True)
  </code></pre>
  <p>How do I get random fg color from the choose list alternatively in the text box. Currently I am only getting one fg color at a time.</p>