summaryrefslogtreecommitdiff
path: root/embroider_simulate.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2018-02-22 23:06:27 -0500
committerGitHub <noreply@github.com>2018-02-22 23:06:27 -0500
commitbb42124a87393fa86288ad8f4079158183683f8f (patch)
treeefd8a5a216ffe41ba4b2c90b0ca8721dc953b7de /embroider_simulate.py
parent48e5d628a8f49b0ff7e6db3d91b3b91f4a1af91a (diff)
Windows fixes (#83)
* os.execv doesn't replace the process on windows * fix simulate/params crash * pyinstaller windowed mode breaks things? * fix output routing for windows * properly route stderr to inkscape too * don't print unless there's something to print * remove last backup version if necessary * add documentation for Windows build
Diffstat (limited to 'embroider_simulate.py')
-rw-r--r--embroider_simulate.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/embroider_simulate.py b/embroider_simulate.py
index 5340dda7..d1407249 100644
--- a/embroider_simulate.py
+++ b/embroider_simulate.py
@@ -233,6 +233,9 @@ class EmbroiderySimulator(wx.Frame):
if self.on_close_hook:
self.on_close_hook()
+ # If we keep a reference here, wx crashes when the process exits.
+ self.canvas = None
+
self.Destroy()
def stop(self):