title: tkinter option menu - update options on fly
body: <p>I'm creating a GUI using Tkinter with Python 2.7.6.</p>
  
  <p>I have a drop down menu, created and initially disabled with the following code:</p>
  
  <pre><code>    self.dropdown = Tkinter.OptionMenu(self, self.dropdownVar, "Select SED...")
      self.dropdown.grid(column=0,row=1)
      self.dropdown.configure(state="disabled")
  </code></pre>
  
  <p>After a user selects a directory, I call a function <code>onEnterDir()</code> which then gets a list of files in that directory. So, I have a list of files in a variable called <code>dirFiles</code>.</p>
  
  <p>What I want is to then update the options in the dropdown menu with the items in this <code>dirFiles</code> list. How would I do this?</p>
  
  <p>My question is different to others on here because I just want to update the list of items <code>self.dropdown</code> displays. It's not dependent on any other widget. I have a python list of things I want to put in. How do I do this?</p>