title: Cannot pass arguments from the tkinter widget.after function
body: <p>Part of the GUI I'm building using tkinter has a pop-up window that says "Please wait while the program is running." then after it finishes the window goes away. I'm using the widget.after command to open the window and run the command. However if I pass the function I call arguments then the pop up window never occurs. Here's an example:</p>
  
  <pre><code>def backupWindow
      self.restoreCB = Toplevel()
  
      message = "Please wait while backup runs"
      Label(self.restoreCB, text=message, padx=100, pady=20).pack()
  
      widget.after(10, self.runBackup)
  
  def runBackup(self):
      &lt;backup code&gt;
      self.backupCB.destroy()
  </code></pre>
  
  <p>This runs fine and does what I want it to do, the window pops up while the backup runs, then the window closes after the backup. However, If I pass the  and argument from the widget.after like the code below, the "please wait" message never shows up.</p>
  
  <pre><code>def backupWindow
      self.restoreCB = Toplevel()
  
      message = "Please wait while backup runs"
      Label(self.restoreCB, text=message, padx=100, pady=20).pack()
  
      widget.after(10, self.runBackup(mybackup))
  
  def runBackup(self,mybackup):
      &lt;backup code using mybackup&gt;
      self.backupCB.destroy()
  </code></pre>