summaryrefslogtreecommitdiff
path: root/lib/extensions/simulate.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2020-08-20 22:13:02 -0400
committerGitHub <noreply@github.com>2020-08-20 22:13:02 -0400
commiteedcd016f620e8e3fe939978becf496d77d4080c (patch)
treeb27caab4f3942b9e9f27eff7efc2bf6c468cca48 /lib/extensions/simulate.py
parent4dcb07c3d801d033df94c2a400adc7ce163d2d4e (diff)
parent6e34f5f7fc8598e564adf9b3e08e6cb4275923b5 (diff)
Merge pull request #793 from inkstitch/lexelby/install-extension-electron
migrate install extension to electron
Diffstat (limited to 'lib/extensions/simulate.py')
-rw-r--r--lib/extensions/simulate.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/extensions/simulate.py b/lib/extensions/simulate.py
deleted file mode 100644
index a4da26d5..00000000
--- a/lib/extensions/simulate.py
+++ /dev/null
@@ -1,19 +0,0 @@
-from ..gui import show_simulator
-from ..stitch_plan import patches_to_stitch_plan
-from .base import InkstitchExtension
-
-
-class Simulate(InkstitchExtension):
- def __init__(self):
- InkstitchExtension.__init__(self)
- self.OptionParser.add_option("-P", "--path",
- action="store", type="string",
- dest="path", default=".",
- help="Directory in which to store output file")
-
- def effect(self):
- if not self.get_elements():
- return
- patches = self.elements_to_patches(self.elements)
- stitch_plan = patches_to_stitch_plan(patches)
- show_simulator(stitch_plan)