RE: python plugins



Did you take a look at what is at:

https://github.com/sdteffen/dia-plugins

Timothy



From: rustompmody gmail com
Date: Sun, 11 Oct 2015 10:23:49 +0530
Subject: Re: python plugins
To: dia-list gnome org

Cut-paste snafu;
The code below is preceded by an:

import dia

On Sun, Oct 11, 2015 at 10:12 AM, Rustom Mody <rustompmody gmail com> wrote:
Writing python plugins for dia looks promising.. but I really cant get a start

From going through the archives I find this

$ cat .dia/python/helloworld.py

def hello_callback(data, flags):
   print "Hello, Dia!\n"
dia.register_callback("Hello",
                       "<Toolbox>/Help/Hello",
                       hello_callback)

With this, I see a Hello under Help

Remove the .../Help..." and it appears next to help in menu

However it seems to do nothing.



Ubuntu 15.4 dia 0.97.3



--

_______________________________________________ dia-list mailing list dia-list gnome org https://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia


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