title: Tkinter get OptionMenu Option List
body: <p>I'm using Python 3, Tkinter module. I've looked at ttk library and one of the widgets there is an Option Menu. It's great, but I was wondering if there is a way to retrieve the list of options that are currently in use by the menu.</p>
  
  <p>In this example:</p>
  
  <pre><code>Options_List=["option1","option2"]
  My_Menu = OptionMenu(master, variable, *Options_List))
  </code></pre>
  
  <p>I'm aware that it may seem trivial. Just retrieve the <code>Options_List</code> variable. But now let's assume I'm making loads of options (using the same, or different lists):</p>
  
  <pre><code>Options_List=["option1","option2","option3"]
  Menu_List = []
  for Option in range(3):
      My_Menu = OptionMenu(master, variable, *Options_List))
      Menu_List.append(My_Menu)
      Options_List.del(-1) #removes last item
  </code></pre>
  
  <p>I just took advantage of the fact that when the Option Menu is assigned, the options are the copy of the <code>Options_List</code> variable, not a reference to it, so when the code is executed, they all refer to their own version of <code>Options_List</code>.</p>
  
  <p>Option output would yield:</p>
  
  <pre><code>Menu_List[0] -&gt; ["option1","option2","option3"]
  Menu_List[1] -&gt; ["option1","option2"]
  Menu_List[2] -&gt; ["option1"]
  </code></pre>
  
  <p>Now you can see that I can't just retrieve <code>Options_List</code>, because each Option Menu has its own list to work off.</p>
  
  <p>So, any ideas? Is there any way I can get hold of the list of options that my nth Option Menu is using?</p>