title: ComboBoxText in Glade / GTK+3 / Python - disappears when displayed 2nd time
body: <p>I'm trying to implement a drop down list in an Ubuntu app using Glade (GTK+3) and Python.
  I can get the ComboBoxText to display, populated with strings. However when I close the window it is contained in and then re-open it, the combobox is not there, just a completely blank window.</p>
  
  <p>I added the ComboBoxText widget in question to a window in Glade. 
  I then added this code in my Python programme:</p>
  
  <pre><code>def on_button_edit_clicked(self, widget):
      """ display list of events already stored, and allow deletion """   
  
      self.combo = self.builder.get_object('combo_box')
      self.store = Gtk.ListStore(str)
  
      self.store.append(['hello'])
      self.store.append(['goodbye'])
      self.combo.set_model(self.store)
  
      event_editor = self.builder.get_object("event_editor")
      event_editor.show() 
  </code></pre>
  
  <p>I even tried destroying the widget to see if that helps:</p>
  
  <pre><code>def on_event_editor_destroy(self, widget):
      self.combo.destroy()
      self.store = Gtk.ListStore(str)
      self.combo.set_model(self.store)
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>I have since tried some alternative code, that included a CellRendererText object, but still no luck. </p>
  
  <p>These are my sources:
  I created a <a href="http://python-gtk-3-tutorial.readthedocs.org/en/latest/treeview.html#Gtk.ListStore" rel="nofollow">Gtk.ListStore()</a>, then I created a <a href="http://python-gtk-3-tutorial.readthedocs.org/en/latest/cellrenderers.html#cellrenderertext" rel="nofollow">Gtk.CellRendererText()</a>, then I created a <a href="http://python-gtk-3-tutorial.readthedocs.org/en/latest/combobox.html" rel="nofollow">Gtk.ComboBox()</a>.
  This was all in-line with example 13.3 <a href="http://python-gtk-3-tutorial.readthedocs.org/en/latest/combobox.html" rel="nofollow">here</a>.</p>
  
  <p>Nothing works. When I open the combobox window a 2nd time, it is just a blank window. Can anyone help please?</p>