Question for extension development
Hello, I have a question about Inkscape extensions UI options. I need textarea input (not only one line for text input, but something like textarea html element), but as far as I studied the documentation I haven’t find out how to do this. Is there any option how to add this type of input to interface of extension? Original of my question can be seen here : https://answers.launchpad.net/inkscape/+question/470626 https://answers.launchpad.net/inkscape/+question/470626
Thank you for your reply, Lukas Haberzettl
Am 06.03.2017 um 20:38 schrieb Lukáš Haberzettl:
Hello, I have a question about Inkscape extensions UI options. I need textarea input (not only one line for text input, but something like textarea html element), but as far as I studied the documentation I haven’t find out how to do this. Is there any option how to add this type of input to interface of extension? Original of my question can be seen here : https://answers.launchpad.net/inkscape/+question/470626
Thank you for your reply, Lukas Haberzettl
Hi Lukas,
I'm afraid there is currently no option to generate a multiline text parameter.
Some options:
* Refactoring and improving the extension implementation is something I have on my todo list and I could have a look at multiline text inputs, too, but it won't happen tomorrow. * If you have some knowledge of GTK+ you could probably implement it yourself (code is at [1]). It shouldn't be to hard to implement it as an extension for the "string" parameter. * Use Python capabilities to generate a custom UI. TkInter is bundled by default, but in principle you can use any of the countless implementations, see [2].
Regards, Eduard
[1] http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/src/exte... [2] https://wiki.python.org/moin/GuiProgramming
On Mar 7, 2017, at 3:06 PM, Mark Schafer <mschafer@...2596...> wrote:
The rest of us just try to do our best. E.g. cutting and pasting a full path into a txt field with location of a file with the extra data you need.
One additional workaround is to have the user enter the input text as a text object (text or flowroot), and to use that text object as an input to your extension.
Windell H. Oskay, Ph.D. Co-Founder and Chief Scientist Evil Mad Scientist Laboratories 175 San Lazaro Ave, STE 150 Sunnyvale CA 94086 http://www.evilmadscientist.com/
participants (4)
-
Eduard Braun
-
Lukáš Haberzettl
-
Mark Schafer
-
Windell H. Oskay