[pygtk] specifying parent class in .override file : A general question

varun_shrivastava shrivastavavarun at yahoo.co.in
Thu Jun 21 19:05:40 WST 2007


i have my class derived from GtkWidget so i need to specify it in override
file as 

import gtk.Widget as PyGtkWidget_Type

so my question is : i have used other gtk classes such as GtkWindow,
GtkButton, GtkVbox in my code
by "use" i mean to say not deriving any class from them, just using it as in
normal gtk program.

i looked through the pygoocanvas and goocanvas code there .override file
contains entries as
 import gobject.GObject as PyGObject_Type
 import gtk.Container as PyGtkContainer_Type
 import gtk.Adjustment as PyGtkAdjustment_Type

GooCanvasClass is derived from GtkContainerClass
GooCanvasItemSimpleClass is derived from GOjectClass
but i couldn't find class that is derived from GtkAdjustment

But GtkAdjustment has been used in the code, 

so is it necessary to mention GtkWindow, GtkButton, GtkVbox in override file
as i have used them in my code


View this message in context: http://www.nabble.com/specifying--parent-class-in-.override-file-%3A-A-general-question-tf3958017.html#a11230889
Sent from the Gtk+ - Python mailing list archive at Nabble.com.

More information about the pygtk mailing list