trying to display a single combo box designed with glade-2 on a linux box, pygtk/win32 produces the following error and the combobox is not displayed correctly. (In fact, it seems that the GtkEntry widget is displayed separately first; after operationg the dropdown button it flips into the correct window).
(glade-demo.py:1680): libglade-WARNING **: could not find internal child `entry' in parent of type 'GtkCombo' (glade-demo.py:1680): libglade-WARNING **: unknown property `selection_mode' for class `GtkWindow'
installed software: glade-2.0.1 Win2000 Python-2.3.3 GTK-Runtime-Environment-2.2.4-2 pygtk-2.2.0-1.win32-py2.3
any help would be greatly appreciated.
best regards /cs
~> cat glade-demo.py
#!/tools/python/bin/python
import sys
import gtk
import gtk.glade
fname = 'test.glade'
xml = gtk.glade.XML(fname)
def gtk_main_quit(*args):
gtk.main_quit()
xml.signal_autoconnect(locals())
gtk.main()~> cat test.glade
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--> <!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
<glade-interface>
<widget class="GtkWindow" id="window1"> <property name="visible">True</property> <property name="title" translatable="yes">window1</property> <property name="type">GTK_WINDOW_TOPLEVEL</property> <property name="window_position">GTK_WIN_POS_NONE</property> <property name="modal">False</property> <property name="resizable">True</property> <property name="destroy_with_parent">False</property>
<child>
<widget class="GtkCombo" id="combo1">
<property name="visible">True</property>
<property name="value_in_list">False</property>
<property name="allow_empty">True</property>
<property name="case_sensitive">False</property>
<property name="enable_arrow_keys">True</property>
<property name="enable_arrows_always">False</property> <child internal-child="entry">
<widget class="GtkEntry" id="combo-entry1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="editable">True</property>
<property name="visibility">True</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
</widget>
</child> <child internal-child="list">
<widget class="GtkList" id="combo-list1">
<property name="visible">True</property>
<property name="selection_mode">GTK_SELECTION_BROWSE</property>
</widget>
</child>
</widget>
</child>
</widget></glade-interface>
-- _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
