title: Update Lambda function arguments on button click
body: <p>I've snipped out parts of the code, as i suspect the answer is quite newbie :) </p>
  
  <p>I am trying to validate the input in the Entry by clicking the button (which references to a validation funciton). However the path_directory-variable are not updated (it keeps the initial value). </p>
  
  <p>How do I update it when the button is clicked? </p>
  
  <pre><code>directory = tk.Entry(entry_frame)
  
  validate_button= tk.Button(paths_frame, text='Next', command=lambda path_directory=directory.get(): self.validate_path(path_directory)) 
  
  def validate_path(self, path_directory):
          if path.exists(path_directory):
              print('# Path validation succuessful: ', path_directory)
          else: 
              print('# Path validation failed: ', path_directory)
  </code></pre>