El Wed, May 16, 2001 at 03:10:26PM +0200, Eduardo Ferro dijo:
> I need to get the label of a button in its signal handler...
> now the code that i use is:
> 
> def ioCambiada(gtkButton):
>       gtkLabel = gtkButton.children()
>       print gtkLabel
>       gtkLabel.set_text('Prueba')


Forget this message...
I don`t know that the .children return a list so i have a list with a
gtkLabel, but not the gtkLabel
So the code must be like:

def ioCambiada(gtkButton):
        gtkLabel = gtkButton.children()[0]
        gtkLabel.set_text('Prueba')


Sorry :(

-- 
Hasta otra!

        Eduardo Ferro Aldama     [EMAIL PROTECTED] 
        http://www.todolinux.net/usuarios/eferro/

La web del GLUB http://glub.ehu.es/
Grupo Linux Usuarios de Bizkaia

Fichero no encontrado . � Me lo invento? (Y/N).
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to