summaryrefslogtreecommitdiff
path: root/embroider_simulate.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2017-12-30 20:54:35 -0500
committerLex Neva <github.com@lexneva.name>2017-12-30 20:54:35 -0500
commit7152caa14d9c0ec912b5326fde58c0c410e45391 (patch)
tree1fadb9a8e9269e0c4a7a3b14c250886f2a753477 /embroider_simulate.py
parent61ed1da1cfb39f6350156bf56ce969efa8899891 (diff)
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.
Diffstat (limited to 'embroider_simulate.py')
-rw-r--r--embroider_simulate.py2
1 files changed, 2 insertions, 0 deletions
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