To edit your def files with DefEditor, you have to compile both wxsvg and pywxsvg.

To compile wxsvg, use the common way:
./configure
make
sudo make install

#########    GENTOO    ##########
To compile pywxsvg, with a gentoo system use theses command lines: 
# USE_SWIG=1 is optional
python setup.py USE_SWIG=1 WX_CONFIG=/usr/bin/wx-config-2.6 SWIG=/opt/bin/swig build
sudo python setup.py USE_SWIG=1 WX_CONFIG=/usr/bin/wx-config-2.6 SWIG=/opt/bin/swig install



#########    UBUNTU    #########
if you are with a ubuntu distribution, use theses lines:
# USE_SWIG=1 is optional
python setup.py USE_SWIG=1 WX_CONFIG=/usr/bin/wx-config SWIG=/opt/bin/swig build
sudo python setup.py USE_SWIG=1 WX_CONFIG=/usr/bin/wx-config SWIG=/opt/bin/swig install



if If you plan to regenerate wrapper with swig, please refer to the readme file in wxsvg/pywxsvg folder.


To launch DefEditor the command line is :
 
python defeditor.py


In the example folder you will find an example with multiples gadgets, a calculette.