New to Inkscape (first used it today) but already managed to create a very useful extension, I have a question that's probably very simple, but I can't find an answer anywhere. I'm so surprised how powerful and yet simple and intuitive Inkscape is! Absolutely amazing!
My extension works thus: select a path on the canvas, click Extensions - Export - and choose my extension. A dialogue pops up asking to supply a filename. So far so good. I choose the filename, click Apply and the path is converted to X/Y coordinates in millimeters and formats the whole thing in a specific way for a plotter. It works like an absolute charm and can produce very, VERY complex images.
However, once the file has been exported, the initial arguments dialogue box does not disappear when the extension has finished doing its thing.
Am I missing something? Is there an option in the .inx file to force it to close? Is there an option to change "Apply" to "OK" (and close the dialog)? Or do I call something from my .py file? The obvious one for me would be somehow declaring that the "Apply" button also closes the dialog.
Hi
New to Inkscape (first used it today) but already managed to create a very useful extension, I have a question that's probably very simple, but I can't find an answer anywhere. I'm so surprised how powerful and yet simple and intuitive Inkscape is! Absolutely amazing!
My extension works thus: select a path on the canvas, click Extensions - Export - and choose my extension. A dialogue pops up asking to supply a filename. So far so good. I choose the filename, click Apply and the path is converted to X/Y coordinates in millimeters and formats the whole thing in a specific way for a plotter. It works like an absolute charm and can produce very, VERY complex images.
However, once the file has been exported, the initial arguments dialogue box does not disappear when the extension has finished doing its thing.
Am I missing something? Is there an option in the .inx file to force it to close? Is there an option to change "Apply" to "OK" (and close the dialog)? Or do I call something from my .py file? The obvious one for me would be somehow declaring that the "Apply" button also closes the dialog.
Any advice would be very welcome!
Thanks in advance
NH
How are you opening the file, is it using a .inx with
or are you using some other kind of file dialogue such as tkinter or gtk3 ?