On k, 2008-01-08 at 12:02 -0800, Ted Gould wrote:
On Tue, 2008-01-08 at 14:23 -0500, Rob Antonishen wrote:
Also, is there an option in the .inx file I can set to permanently disable the live preview check option? My extension take a long time to run (>30 seconds) and the live preview becomes a pain.
No there is not a way, but I don't see that as an issue. The live effect checkbox is disabled by default and if it is enabled the only thing that should change is that, in the background, it would start running before the user hits "okay" in the dialog.
Also, if we offered such an option I think our choices would become outdated quickly. When I get my new wiz-bang computer, it'll probably render it in 2 seconds, and make live preview useful.
Let's consider the barcode extension (pick EAN8). With the live preview on, when you start, it complies (with an error message), that I should write 6 letters. And when i type one more letter, it popups an another error message, that the entry should be exactly 6 characters. So it does matter how fast your computer is...
Best regards, Khiraly
The error message:
Can not encode '1' into EAN8 Barcode, Size must be 7 or 8 Numbers only Traceback (most recent call last): File "/usr/share/inkscape/extensions/render_barcode.py", line 58, in <module> e.affect() File "/usr/share/inkscape/extensions/inkex.py", line 153, in affect self.effect() File "/usr/share/inkscape/extensions/render_barcode.py", line 49, in effect barcode = object.generate() File "/usr/share/inkscape/extensions/Barcode/Base.py", line 114, in generate text.set( 'xml:space', 'preserve' ) File "etree.pyx", line 534, in etree._Element.set File "apihelpers.pxi", line 199, in etree._setAttributeValue File "apihelpers.pxi", line 723, in etree._getNsTag ValueError: Invalid tag name