title: Hide a Button in Tkinter
body: <p>I want to hide a tkinter button but not when the user clicks it. I just want to hide it, at random times. How will I do that in Python? Below is the code I tried:</p>
  
  <pre><code>self.startGame = Button(self.canvas, text="Start", background='white', command = self.startGame, font=("Helvetica"))
  self.startGame.place(x=770, y=400)
  </code></pre>
  
  <p>Hiding it:</p>
  
  <pre><code> self.startGame.bind('&lt;Button-1&gt;', self.hide_me)
  
   def hide_me(self, event):
      print('hide me')
      event.widget.pack_forget()
  </code></pre>
  
  <p>It doesn't even get inside the <code>hide_me</code> function.</p>