title: Problem about "after" method and get value from "Entry" in Python
body: <p>I have a problem with following code because I can't add a variable after method as delay, that is get from user keyboard in entry widget. My python program: In Entry widget you add time in seconds, than you press button and after time in seconds user typed starts an mp3 file.</p>
  <p>Here my code:</p>
  <pre><code>import tkinter as tk
  from playsound import playsound
  
  def rest():
     sleep= int(label_time.get())
     root.after(sleep,sound)
      
  def sound():
      playsound(&quot;sirena.mp3&quot;)
      
  root= tk.Tk()
  label_time= tk.Entry(root, bd= 5, justify=&quot;center&quot;)
  label_time.place(x= 40, y= 60)
  b_conferma= tk.Button(root, text=&quot;GO&quot;, command= rest ,bg= &quot;red&quot;).place (x= 90, y= 100)
  
  root.mainloop()
  </code></pre>
  <p>Thank you all</p>