title: Text in tkinter
body: <p>I want that when the &quot;Start&quot; button is pressed, it executes code and counts from 3 (3... 2... 1... Ready!), with delay between each and printing the numbers in the program window. I used tkinter. But I can't get the countdown to appear when I press the &quot;Start&quot; button. And I don't know how to add the code that is executed after pressing the button.</p>
  <hr />
  <pre><code>import tkinter as tk
  from tkinter import ttk
  import time
  class Aplicacion:
      def __init__(self,master):
          self.master=master
          self.master.title('Title')
          self.master.geometry('290x50')
          self.inicializar_gui()
      def inicializar_gui(self):
          lbl_bienvenido=tk.Label(self.master,text='Hi!',font=('Helvetica',10))
          lbl_bienvenido.place(x=0,y=0)
          btn_login=tk.Button(self.master,text='Start')
          btn_login['command']=self.comando
          btn_login.place(x=10,y=23)
      def comando(self):
          entry = ttk.Entry(state=tk.DISABLED, takefocus=False)
          entry.place(x=63, y=25)
          entry.insert(0, &quot;1...&quot;)
          # print(&quot;3&quot;)
          # time.sleep(1)
          # print(&quot;2&quot;)
          # time.sleep(1)
          # print(&quot;1&quot;)
          # time.sleep(1)
          # print(&quot;Ready!&quot;)
  def main ():
      root = tk.Tk()
      ventana = Aplicacion(root)
      root.mainloop()
  
  if __name__ == &quot;__main__&quot;:
      main()
  </code></pre>
  <hr />