On 26.07.2006 14:07, lidiriel wrote:
> I have recompiled dia 0.95 on linux.
> I paste into ~/.dia/python/hello.py , the hello code found in this
> mailling list :
> import dia
> def hello_callback(data, flags):
> print "Hello, Dia!\n"
> dia.register_callback("Hello, world",
> "<Display>/Plugins/Hello",
> hello_callback)
>
Works for me. The only issue I found was two plug-ins with the same
name in the system- and user-directory. Than only the first gets
imported.
> my dia is compiled with option --enable-debug and --with-python
Did you install it or are you running dia via app/run_dia.sh?
Is the Python plug-in loaded, i.e. visible and activated in File/Plugins?
> But i don't find the plugin entry hello in dia. It the same thing for
> center.py whit a callback function
>
> dia.register_callback ("Center Objects",
> "<Display>/Objects/Center",
> dia_objects_center_cb)
>
Not sure if I understood correctly: neither hello.py nor center.py are
registered? Does *any* of the included Python plug-ins show up? E.g. is
there <Toolbox>/Help/Self Doc/Object Types and
<Display>/Dialogs/Group Properties ?
> What's happended ? I have no idea ?
>
Me neither. If all the above questions did not help find an answer maybe
you should start debugging yourself.
Hans
-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it. -- Dilbert
_______________________________________________
Dia-list mailing list
[email protected]
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