I have a problem about combobox + glade...
I don't know how to insert values, in a combobox generated by glade, in my code.
This is the code I'm using:
import pygtk
import gtk
import gtk.glade
import gobject
janela = gtk.glade.XML ("/home/adriano/teste/teste.glade", "window1")
lista = gtk.ListStore ( gobject.TYPE_STRING )
lista.append ( [ "testing1" ] )
lista.append ( [ "testing2" ] )
lista.append ( [ "testing3" ] )
lista.append ( [ "testing4" ] )
combo = janela.get_widget ("comboboxentry1")
combo.set_model ( lista )
gtk.main ()
The glade file has only one widget: a comboboxentry with name: comboboxentry1
The fields in the comboboxentry is showed, but I can't see their
values and it raises an error when I click in a field.
What I'm doing wrong?
Regards,
--
Adriano Monteiro Marques
www.red-code.com
[EMAIL PROTECTED]
[EMAIL PROTECTED]
I'm FREE... Are you?
(PYTHON powered)
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/