summaryrefslogtreecommitdiff
path: root/lib/simulator.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-08-27 15:51:27 -0400
committerLex Neva <github.com@lexneva.name>2018-08-27 15:51:27 -0400
commit7eb36c5fc6dc4cd36a136a1858096d9523945c82 (patch)
tree4518b10d1a98fdb867db69c1be753f439044c0e5 /lib/simulator.py
parente56e99329a750f6b002c9230fbbd62518c65f083 (diff)
buttons for backward and forward one stitch
Diffstat (limited to 'lib/simulator.py')
-rw-r--r--lib/simulator.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/simulator.py b/lib/simulator.py
index d1db35e4..7789ec91 100644
--- a/lib/simulator.py
+++ b/lib/simulator.py
@@ -38,6 +38,10 @@ class ControlPanel(wx.Panel):
self.btnMinus.Bind(wx.EVT_BUTTON, self.animation_slow_down)
self.btnPlus = wx.Button(self, -1, label='+')
self.btnPlus.Bind(wx.EVT_BUTTON, self.animation_speed_up)
+ self.btnBackwardStitch = wx.Button(self, -1, label='<|')
+ self.btnBackwardStitch.Bind(wx.EVT_BUTTON, self.animation_one_stitch_backward)
+ self.btnForwardStitch = wx.Button(self, -1, label='|>')
+ self.btnForwardStitch.Bind(wx.EVT_BUTTON, self.animation_one_stitch_forward)
self.direction = wx.Button(self, -1, label='>>')
self.direction.Bind(wx.EVT_BUTTON, self.on_direction_button)
self.pauseBtn = wx.Button(self, -1, label='Pause')
@@ -67,6 +71,8 @@ class ControlPanel(wx.Panel):
hbSizer2.AddStretchSpacer(prop=1)
hbSizer2.Add(self.btnMinus, 0, wx.ALL, 2)
hbSizer2.Add(self.btnPlus, 0, wx.ALL, 2)
+ hbSizer2.Add(self.btnBackwardStitch, 0, wx.ALL, 2)
+ hbSizer2.Add(self.btnForwardStitch, 0, wx.ALL, 2)
hbSizer2.Add(self.direction, 0, wx.EXPAND | wx.ALL, 2)
hbSizer2.Add(self.pauseBtn, 0, wx.EXPAND | wx.ALL, 2)
hbSizer2.Add(self.restartBtn, 0, wx.EXPAND | wx.ALL, 2)