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')
And the output is:
[eferro@drako iopipe]$ ./virtualio.py
[<gtk.GtkLabel instance at 8208530>]
Traceback (innermost last):
File "/usr/lib/python1.5/site-packages/libglade.py", line 28, in __call__
ret = apply(self.func, a)
File "./virtualio.py", line 25, in ioCambiada
gtkLabel.set_text('Prueba')
AttributeError: set_text
So it seems that the gtkLabel have a correct GtkLabel object instance
but it dont let me use the GtkLabel methods... i try with get()
set_text() but neither of them work
Any info about it
--
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
[incredibly rude and childish comments deleted]
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk