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

varun_shrivastava varun.celunite at gmail.com
Tue Aug 28 18:19:59 WST 2007


hi 
sorry for that here is what i want to ask

i have made the module using steps given in "extending python.pdf"
documentation from www.python.org
so have i done a mistake in writing the mygtkmodule.c file or not using the
coddegen scripts properly.
Or i there something i m missing to tell codegen scripts to auto recognize
the inheritance.

when i do make for :
 gtkmywrap.c: gtkmy.defs gtkmy.override
          pygtk-codegen-2.0 --prefix pygtkmy \
              --override gtkmy.override \
             --register $(DEFS)/gtk-types.defs \
              --register $(DEFS)/gdk-types.defs \
              --register $(DEFS)/pango-types.defs \
              gtkmy.defs > $@

i get this as output
***INFO*** The coverage of global functions is 94.12% (16/17)
***INFO*** The coverage of methods is 98.60% (212/215)
***INFO*** There are no declared virtual proxies.
***INFO*** There are no declared virtual accessors.
***INFO*** There are no declared interface proxies. 

i think i m missing something really imp.



thanks and regards
varun


Gian Mario Tagliaretti-3 wrote:
> 
> 2007/8/27, varun_shrivastava <varun.celunite at gmail.com>:
> 
> Hi Varun,
> 
> please do something to improve your quoting, in the previous messages
> I couldn't understand which one was your new message mixed together
> with the old ones, that makes even more difficult to help.
> 
>> i went through the gtk.c file in pygtk source code there i find some
>> function as *_class_init being generated.
>> but i didn't find any like those in my generated code.
>> Is that the problem for not being able to inherit the base class method.
> 
> I don't think that's the problem, IIRC those functions are implemented
> for classes that implement virtual methods, Johan or Gustavo can
> confirm, they know much better then me those details.
> 
> cheers
> -- 
> Gian Mario Tagliaretti
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
> 
> 

-- 
View this message in context: http://www.nabble.com/how-to-call-a-method-of-GtkWidget-by-using-object-of-GtkWindow-tf4298164.html#a12365411
Sent from the Gtk+ - Python mailing list archive at Nabble.com.



More information about the pygtk mailing list