create python dia plugin : need help !

I have recompiled dia 0.95 on linux.
I paste into ~/.dia/python/ , the hello code found in this mailling list :
import dia
def hello_callback(data, flags):
  print "Hello, Dia!\n"
dia.register_callback("Hello, world",

my dia is compiled with option --enable-debug and --with-python
But i don't find the plugin entry hello in dia. It the same thing for whit a callback function

dia.register_callback ("Center Objects",

What's happended ? I have no idea ?

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]