[pygtk] how to call a method of GtkWidget by using object of GtkWindow

Gian Mario Tagliaretti gianmt at gnome.org
Wed Aug 22 19:17:03 WST 2007

2007/8/21, varun_shrivastava <shrivastavavarun a yahoo.co.in>:

> GtkVBox --> GtkMyDisplayable ---> GtkMyForm
> GtkMyDisplayable has an api gtk_my_displayable_add_command(GtkMyDisplayable
> *displayable, gchar *string)
> so i do following
> >>> form = mygtk.MyForm()
> >>>form.displayable_add_command("_____")
> it displays following error
> "form has no attribute displayable_add_command"

As far as I understand the method in your base class is not inherited
as it should, but again nobody can tell why without seeing the whole
picture, unless I'm missing something of course.

Gian Mario Tagliaretti

More information about the pygtk mailing list