From bb42124a87393fa86288ad8f4079158183683f8f Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Thu, 22 Feb 2018 23:06:27 -0500 Subject: 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 --- embroider_simulate.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'embroider_simulate.py') 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): -- cgit v1.2.3