title: How make tkinter combobox loop work in class using a list as defaut and 1 dictionary in dropdown menu?
body: <p>I'm having a hard time trying to solve this.</p>
  <p>I loop through list --&gt; &quot;self.houses&quot; to build the comboboxes.</p>
  <p>I use keys of a dictionary &quot;self.heroes&quot; as options to be chosen in dropdown options</p>
  <p>And finally I need &quot;self.houses&quot; list as default display in comboboxes (replacing empty cells) before choosing options. First combobox 'DC',  second combobox 'Dark Horse', and last one  'Marvel'</p>
  <p>My actual app gets a large list of lists and dictionaries to be matched and reintegrated in a table. My brain is melting, so please if someone can help.</p>
  <pre><code>import tkinter as tk
  from tkinter import *
  from tkinter import *
  from tkinter.ttk import *
  
  root= tk.Tk()
  root.minsize(550,450)
  root.maxsize(560,460)
  root.title('mymyAPP')
  
  class My_Guess(tk.Frame):
  
      def __init__(self, parent):
          tk.Frame.__init__(self, parent)
          self.parent = parent
  
  
          #keys are the options to be choosen - ITS WORKING FINE
          self.heroes = {'wonder woman':'wonder woman', 'iron man': 'iron man',
                     'astroboy':'astroboy'} 
  
          # list self,houses is used to create comboboxes loop - ITS WORKING FINE
                      
          #HERE IS THE PROBLEM:
          # How 'default' strings from 'self.houses' in empty combobox loop before choose
          # one and only string in each combo
          self.houses = [ 'DC', 'Dark Horse', 'Marvel'] 
          
  
          self.select_house_hero()
     
      def select_house_hero(self):
          
          self.definitions = self.houses
          for index, definition in enumerate(self.definitions):
  
              self.match_hero_house = StringVar()
  
              self.my_match = Combobox(self, values=(list(self.heroes.keys())),
                                                 justify=&quot;center&quot;, 
                                                 textvariable=self.match_hero_house,
                                                 state=&quot;readonly&quot;)
  
              self.my_match.bind('&lt;&lt;ComboboxSelected&gt;&gt;',
                                 lambda event, 
                                 cmb=self.my_match: self.get_results_from_ComboBox(event, cmb))
  
              self.my_match.grid(row=( 1 + index),  column=0, stick='w')
              
              
      def get_results_from_ComboBox(self):
          pass
  
  if __name__ == '__main__':
      app = My_Guess(root) 
      app.grid(row=0, column=0, sticky='nsew')
      root.mainloop()
  
  
  
   
  </code></pre>