title: Im writing my first Gui game and am running into some widget issues
body: <p>I'm writing a text game where you have to enter as many of the randomly generated (from a file) words in 60 seconds. I currently have a working timer but my entry widget won't do anything.
  I should be able to press enter on my entry widget and if the word within is equal to the generated word the score goes up. The box should also be cleared however it doesn't do that either.</p>
  
  <pre><code>def game(*args):
      if timer == 60: # Starts the timer and calls the words function
          countdown()
      words()
  
  
  def words():
      global score
      global timer
  
      if timer &gt; 0:
          entry.focus_set()  # Activate the entry box
          word = str(random.choice(word_list[0]))
          word_label.config(text=word)
          if entry.get().lower() == word.lower():
              score += 1
              entry.delete(0, 9999999)
      if timer == 0:
          results(score)
  
  
  def countdown():
      global timer
  
      if timer &gt; 0:
          timer -= 1
          # Update the time left label
          time_label.config(text="Time left: " + str(timer))
  
          # Run the function again after 1 second
          time_label.after(1000, countdown)
  </code></pre>
  
  <p>These are the main functions involved.</p>
  
  <pre><code># Gui
  root = Tk()
  root.title("Text Typers")
  
  # Create the top frame
  top_frame = ttk.LabelFrame(root, text="Menu:")
  top_frame.grid(row=0, column=0, padx=10, pady=10, sticky="NSEW")
  
  # Play button
  play_button = ttk.Button(top_frame, text="Play", command=game)
  play_button.grid(row=5, column=0, columnspan=2, padx=10, pady=10)
  
  # Timer
  time_label = ttk.Label(top_frame, text="Time left: " + str(timer))
  time_label.grid(row=6, column=0, columnspan=2, padx=10, pady=10)
  
  # Entry function
  entry = ttk.Entry(root)
  entry.grid(row=8, column=0)
  
  
  # Word label
  word_label = ttk.Label(root, font=20)
  word_label.grid(row=7, column=0, padx=10, pady=10)
  
  root.mainloop()
  </code></pre>
  
  <p>This is all the relevant GUI code. Has something gone over my head? 
  Edit: After more testing it seems that the code doesn't even run to the 'if entry' part is it because theres the timer function running and preventing the words function to function properly?</p>