Robert Staudinger wrote: > > The API has changed as Dia has been moving from using the deprecated > GtkItemFactory to GtkActions. Dia's existing plugins have been > updated, check [1] for reference. > > [1] > http://cvs.gnome.org/viewcvs/dia/plug-ins/python/debug_objects.py?rev=1.5&view=markup > > HTH, > Rob thanks for your link but with the hello.py code if i try the register_action with :
dia.register_action ("Hello", "Hello", "/DisplayMenu/Hello", hello_callback) it not work, i have in terminal : "could not import hello.py" if i use register_callback : dia.register_callback ("Hello", "<Toolbox>/Tools/Hello", hello_callback) it's work : there is a new hello entry in toolbar. What is the correct register ? my hello_callback method is : def hello_callback(data, flags): print "Hello, Dia!\n" I use the 0.95 version downloaded from http://www.gnome.org/projects/dia/ Is "dia.register_action" work with it or it's only for the last cvs source ? _______________________________________________ Dia-list mailing list Dia-list@gnome.org http://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://www.gnome.org/projects/dia/faq.html Main page at http://www.gnome.org/projects/dia