kopia lustrzana https://github.com/inkstitch/inkstitch
a few more fixups
rodzic
908f2cd772
commit
f53fe05200
|
@ -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
|
||||
})
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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__)
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Ładowanie…
Reference in New Issue