This is the error raised by the click:

[EMAIL PROTECTED] fios]$ python ~/combo.py
/home/adriano/combo.py:18: GtkWarning: file gtkentry.c: line 3717
(gtk_entry_set_text): assertion `text != NULL' failed
  gtk.main ()

Regards,


On Mon, 29 Nov 2004 09:15:06 -0200, Adriano Monteiro
<[EMAIL PROTECTED]> wrote:
> 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)
> 


-- 

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/

Reply via email to