From 7eb36c5fc6dc4cd36a136a1858096d9523945c82 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Mon, 27 Aug 2018 15:51:27 -0400 Subject: buttons for backward and forward one stitch --- lib/simulator.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/simulator.py') 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) -- cgit v1.2.3