[pyar] Trabajando con el control gtk.Notebook en Pygtk

craf prog en vtr.net
Mar Oct 5 22:27:52 ART 2010


Hola.

Estoy probando el tutorial de Andrew Steele :
http://www.learnpygtk.org/pygtktutorial/index.html

En referencia al control gtk.Notebook, el siguiente texto dice que se
puede agregar un control al lado izquierdo o derecho de las pestañas.(Su
uso típico podría ser colocar un botón con una imagen X, que cerraría la
pestaña).

Cito:

An Action Area provides the ability to add any widget to the space on
the left or right of the tabs in the Notebook. This can be done with the
following methods:

notebook.set_action_widget(widget, pack_type)

The widget should be set to the name of the child widget being added.
The pack_type should be set to one of the following:

gtk.PACK_START
gtk.PACK_END

When using gtk.PACK_START, the Action Area is positioned before the
first tab. gtk.PACK_END places the Action Area at the end of the tab row
within the Notebook.


Cuando ejecuto el código, python me entrega el siguiente error:

attributeError: 'gtk.Notebook' object has no attribute
'set_action_widget'

Busqué en la pagina de Pygtk, y en realidad no aparece por ningún lado
ese método.

Pregunta: ¿Será que todavía no se implementa en la versión que utilizo?

Ubuntu 9.10 gnome 2.28.0 - pygtk 2.6

Saludos

Cristian Abarzúa F.




More information about the pyar mailing list