[pygtk] Warning: cannot register existing type
varun_shrivastava
shrivastavavarun at yahoo.co.in
Mon Aug 20 15:52:42 WST 2007
hi
i have inherited some of my widgets from gtk widgets GtkVbox , GtkWidget
etc.
Also i have extended it to python and named the module as "pymygtkmod.so"
I have another library "myapp.so"which uses apis provided by the above
shared library.
i tried extending it to python but i got an error as
undefined symbol : PyMyGtkDisplayable_Type
this error was due to reason that i used MyGtkDisplayable as an argument
type in one of the apis of myapp.so
so i added two lines in my .override file
extern PyMyGtkDisplayable_Type;
and
%%
import pymygtkmod.Displayable as PyMyGtkDisplayable_Type
%%
adding these lines got me rid of the errors but now when i call apis of
myapp.so module in python i get these errors
>>>import myapp
>>>myapp.App()
__main__:1: Warning: cannot register existing type `MyGtkCommand'
(MyGtkCommand is inherited from GObject)
this my_app.App is a wrapper for my_app_new() which internally calls apis of
mygtkmod.so
--
View this message in context: http://www.nabble.com/Warning%3A-cannot-register-existing-type-tf4297180.html#a12231484
Sent from the Gtk+ - Python mailing list archive at Nabble.com.
More information about the pygtk
mailing list