[Glade-users] simple comboboxentry app fails
- From: mat.yeates at gmail.com (Mathew Yeates)
- Subject: [Glade-users] simple comboboxentry app fails
- Date: Mon, 19 Apr 2010 10:34:57 -0700
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]