title: Python/Tkinter force wait on button click
body: <p>Back after another 30 minute search and either failure to comprehend results or unable to find results...</p>
  
  <p>I want to force my application to wait for a button click before continuing, and have the following code snippet as my example:</p>
  
  <pre><code>... 
  
  def crack(self, Filenamelist, forceclick):
  
          forceclick += 1
  
          self.crackButton.configure(state='active')
  
          if forceclick != 2:
  
              self.crackButton.bind('&lt;ButtonRelease-1&gt;', self.crack(Filenamelist, forceclick))
  
          self.outputBox.insert(END, '\n' + 'Parsing answer numerator...' + '\n')
  
  ...
  </code></pre>
  
  <p>I basically want it to load the function crack(), increment 1 to forceclick (which was set to 0 beforehand), change the 'crack button' to an active state, and then bind the button while waiting for the user to provoke the bind. After the bind is provoked, the function reloads, increments one to forceclick, and then skips the if statement.</p>
  
  <p>However, when I run the program through, it just binds the key to the crack button and automatically reloads the function to bypass the if statement... I tried a while loop before, but that did not end well...</p>
  
  <p>Any suggestions?</p>