From 7152caa14d9c0ec912b5326fde58c0c410e45391 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sat, 30 Dec 2017 20:54:35 -0500 Subject: render in a background thread The problem with this approach is that sometimes the SystemExit happens down inside shapely and it complains bitterly (on stderr). May have to rethink. --- embroider_simulate.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'embroider_simulate.py') diff --git a/embroider_simulate.py b/embroider_simulate.py index d80dbe6e..6db203ad 100644 --- a/embroider_simulate.py +++ b/embroider_simulate.py @@ -179,6 +179,8 @@ class EmbroiderySimulator(wx.Frame): def clear(self): self.dc.SetBackground(wx.Brush('white')) self.dc.Clear() + self.last_pos = None + self.Refresh() def on_size(self, e): # ensure that the whole canvas is visible -- cgit v1.2.3