On Tue, May 28, 2019 at 8:01 AM <dia-list-requ...@gnome.org> wrote: > > Date: Mon, 27 May 2019 11:14:31 +0200 > From: Przemek Kot <przemyslaw....@gmail.com> > Subject: How and where the Python binding is done? I need some > directions in changing python2 for python3 in Dia. > Message-ID: > > Hi, I would like to ask for some directions where to find, what to look for > if i would like to change the use of python2 to python3 in dia? > > I discovered that dia uses python2 and i need python3 to use, and Im going > on a adventure that is changing the python2 for python3. >
There are extensions for Dia written in Python, but as best I can determine, Dia itself does not use Python. Several years ago, I had a need for one of those extensions. To use it, I had to install a Python2 environment. These Python scripts import a module called "dia". I did not look at it, but I would assume you would need to rewrite portions of that module to be compatible with Python3. FYI, another tool, Inkscape, has a usably documented interface for writing extensions in any language. Right now, as best I can tell, closest there is to documentation on Dia's extension interface is the dia Python2 module.
_______________________________________________ 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