[Glade-users] simple comboboxentry app fails

Mathew Yeates mat.yeates at gmail.com
Mon Apr 19 13:34:57 EDT 2010


Why is this failing?

import gtk
builder = gtk.Builder()
builder.add_from_file("cbe.glade")
win=builder.get_object("window1")
win.connect("destroy", lambda x: gtk.main_quit())
win.show()
gtk.main()

<?xml version="1.0"?>
<interface>
  <requires lib="gtk+" version="2.16"/>
  <!-- interface-naming-policy project-wide -->
  <object class="GtkWindow" id="window1">
    <child>
      <object class="GtkComboBoxEntry" id="comboboxentry1">
        <property name="visible">True</property>
      </object>
    </child>
  </object>
  <object class="GtkListStore" id="liststore1">
    <columns>
      <!-- column-name col1 -->
      <column type="gchararray"/>
    </columns>
    <data>
      <row>
        <col id="0" translatable="yes">dog</col>
      </row>
      <row>
        <col id="0" translatable="yes">cat</col>
      </row>
    </data>
  </object>
</interface>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20100419/e7c2c6e2/attachment.html 


More information about the Glade-users mailing list