{Resolved] Creating a new submenu in Inkscape ?

Discuss SVG code, accessible via the XML Editor.
Papy Octet
Posts: 19
Joined: Tue Nov 25, 2008 3:06 pm

{Resolved] Creating a new submenu in Inkscape ?

Postby Papy Octet » Wed Feb 10, 2010 1:09 am

Hello,

I have a simple question : is it possible to add a new submenu in Inkscape.
I would like to create a personal submenu in te menu "extensions" of Inkscape.

Is it possible without compiling Inkscape sources ?
If possible, how can I write it in Python, for example ?

Thank You.
Last edited by Papy Octet on Wed Feb 10, 2010 4:58 pm, edited 1 time in total.

lazy1

Re: Creating a new submenu in Inkscape ?

Postby lazy1 » Wed Feb 10, 2010 11:36 am

one very tired and incomplete answer:
IYes, I think that nkscape can have submenues added. If you look into inkscape extension folder, (on windows inkscape\share\extensions) you can see .INX files. Inkscape uses these file (created by extension authors) to place the extensions in Inkscape's menu structure. Have a look at this wiki page: http://wiki.inkscape.org/wiki/index.php/MakingAnINX

I think the option you want is the <submenu _name="..."> element

Code: Select all

  <effect>
    <object-type>all</object-type>
      <effects-menu>
        <submenu _name="JessyInk"/>
      </effects-menu>
  </effect>


hope that helps, tomh

Papy Octet
Posts: 19
Joined: Tue Nov 25, 2008 3:06 pm

Re: Creating a new submenu in Inkscape ?

Postby Papy Octet » Wed Feb 10, 2010 4:57 pm

Thank you.
It's just what I'm looking for.
A+ :D


Return to “SVG / XML Code”