summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-08-21 21:57:15 -0400
committerLex Neva <github.com@lexneva.name>2018-08-21 21:57:15 -0400
commitf53fe0520098d26e65d89adcf1580b36433c4927 (patch)
tree1b0e8b6d0e582e84d7bb0f1f947a84ababfd1de8
parent908f2cd7727e939b87e3f57c1d3a189705de4c94 (diff)
a few more fixups
-rw-r--r--lib/extensions/layer_commands.py20
-rw-r--r--lib/extensions/output.py1
-rw-r--r--lib/extensions/print_pdf.py2
-rw-r--r--lib/simulator.py2
4 files changed, 12 insertions, 13 deletions
diff --git a/lib/extensions/layer_commands.py b/lib/extensions/layer_commands.py
index 8210c7c6..dbafc39f 100644
--- a/lib/extensions/layer_commands.py
+++ b/lib/extensions/layer_commands.py
@@ -34,13 +34,13 @@ class LayerCommands(CommandsExtension):
self.ensure_symbol(command)
inkex.etree.SubElement(self.current_layer, SVG_USE_TAG,
- {
- "id": self.uniqueId("use"),
- INKSCAPE_LABEL: _("Ink/Stitch Command") + ": %s" % get_command_description(command),
- XLINK_HREF: "#inkstitch_%s" % command,
- "height": "100%",
- "width": "100%",
- "x": str(i * 20),
- "y": "-10",
- "transform": correction_transform
- })
+ {
+ "id": self.uniqueId("use"),
+ INKSCAPE_LABEL: _("Ink/Stitch Command") + ": %s" % get_command_description(command),
+ XLINK_HREF: "#inkstitch_%s" % command,
+ "height": "100%",
+ "width": "100%",
+ "x": str(i * 20),
+ "y": "-10",
+ "transform": correction_transform
+ })
diff --git a/lib/extensions/output.py b/lib/extensions/output.py
index 9ffa82a3..26fd4f2e 100644
--- a/lib/extensions/output.py
+++ b/lib/extensions/output.py
@@ -3,7 +3,6 @@ import os
import tempfile
from .base import InkstitchExtension
-from ..i18n import _
from ..output import write_embroidery_file
from ..stitch_plan import patches_to_stitch_plan
from ..svg import PIXELS_PER_MM
diff --git a/lib/extensions/print_pdf.py b/lib/extensions/print_pdf.py
index 47b89061..d2e2365d 100644
--- a/lib/extensions/print_pdf.py
+++ b/lib/extensions/print_pdf.py
@@ -107,7 +107,7 @@ class PrintPreviewServer(Thread):
else:
self.resources_path = os.path.realpath(os.path.join(os.path.dirname(__file__), '..', '..', 'print', 'resources'))
- def __setup_app(self):
+ def __setup_app(self): # noqa: C901
self.__set_resources_path()
self.app = Flask(__name__)
diff --git a/lib/simulator.py b/lib/simulator.py
index 5620f65b..3df72a08 100644
--- a/lib/simulator.py
+++ b/lib/simulator.py
@@ -5,7 +5,7 @@ import colorsys
from itertools import izip
from .svg import PIXELS_PER_MM, color_block_to_point_lists
-
+from .i18n import _
class EmbroiderySimulator(wx.Frame):
def __init__(self, *args, **kwargs):