[pygtk] Pre registered Enumeration

varun_shrivastava varun.celunite at gmail.com
Wed Sep 19 13:35:43 WST 2007


hi
  i have started facing one more problem regarding enumerations

I made some changes in my c code to register the enumeration with
g_param_spec_enum in my class_init function.

Now when i try to make the python module, it builds properly but at the time
of importing it aborts saying "can not register already registered ******",
so i tried removing line pyg_enum_add(****) from ***_add_constants ()
function for that particular enumeration.

Now it builds and imports properly but i m not able to use that enumerations
from python script.

so what should i do in order to make it accessible from python.
  

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



More information about the pygtk mailing list