Show/hide elements in extension interface

Discussion about writing code for Inkscape.
nico80
Posts: 3
Joined: Wed Apr 09, 2008 2:18 pm

Show/hide elements in extension interface

Postby nico80 » Fri May 09, 2014 8:50 pm

I am having a go at creating an extension in Inkscape and I was wondering whether it were possible to show/hide (or at least disable) certain elements of the interface.

For instance, say in my .inx file I define an optiongroup with several options, which rely on different parameters. I would like the corresponding edit boxes for the parameters to appear/disappear depending on the selection in the optiongroup.

Is that possible at all?

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Show/hide elements in extension interface

Postby hulf2012 » Sat May 10, 2014 12:47 am

Hello,
It's an interesting cuestion
Have you checked on the wiki page?
http://wiki.inkscape.org/wiki/index.php/MakingAnINX

(My point of view)In this forum, mostly is for users more than developers
Maybe more help or a better categoric answer can be found on the mailing lists:
http://www.inkscape.org/en/community/mailing-lists/

My guess is that it's not possible: To change the GUI interface of the extension interactively.


Since I believe that you have more experience about developing in python, I have a suggestion: Use TCl/TK. But for this you should have to install those libraries by hand, because the python version which comes with Inkscape, doesn't have those libraries.
Or other more advanced GUI with python.

Greetings
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.


Return to “Programming”