summaryrefslogtreecommitdiff
path: root/embroider_simulate.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2017-12-28 15:39:56 -0500
committerLex Neva <github.com@lexneva.name>2017-12-28 15:39:56 -0500
commita736f7293ff1df73cf3ac653d966aa8c7390e2b8 (patch)
treecba891046401942fd37b22ae0f9fb02902a895b0 /embroider_simulate.py
parent6e85547432bec1e8707f43131b523d3276b0753c (diff)
rename draw_one_stitch to be more accurate
Diffstat (limited to 'embroider_simulate.py')
-rw-r--r--embroider_simulate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/embroider_simulate.py b/embroider_simulate.py
index 2629c812..13a84e8a 100644
--- a/embroider_simulate.py
+++ b/embroider_simulate.py
@@ -118,7 +118,7 @@ class EmbroiderySimulator(wx.Frame):
def go(self):
self.current_stitch = 0
- self.timer = wx.PyTimer(self.draw_one_stitch)
+ self.timer = wx.PyTimer(self.draw_one_frame)
self.timer.Start(self.frame_period)
def clear(self):
@@ -149,7 +149,7 @@ class EmbroiderySimulator(wx.Frame):
dc = wx.ClientDC(self)
dc.DrawBitmap(self.buffer, 0, 0)
- def draw_one_stitch(self):
+ def draw_one_frame(self):
for i in xrange(self.stitches_per_frame):
try:
((x1, y1), (x2, y2)), color = self.stitches[self.current_stitch]