diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-08-27 20:57:49 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-08-27 20:57:49 -0400 |
| commit | e749fdc781d1cf7518e120e512ccbf0a313414c6 (patch) | |
| tree | c3842c7ba4eedacb1d04b68208323f08632da583 /lib/simulator.py | |
| parent | 8d196ace7fb01d2ac011d1c685ff422ef891320c (diff) | |
reverse the >> button
Diffstat (limited to 'lib/simulator.py')
| -rw-r--r-- | lib/simulator.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/simulator.py b/lib/simulator.py index 0b805acf..c1f86905 100644 --- a/lib/simulator.py +++ b/lib/simulator.py @@ -42,7 +42,7 @@ class ControlPanel(wx.Panel): 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 = wx.Button(self, -1, label='<<') self.direction.Bind(wx.EVT_BUTTON, self.on_direction_button) self.pauseBtn = wx.Button(self, -1, label=_('Pause')) self.pauseBtn.Bind(wx.EVT_BUTTON, self.on_pause_start_button) @@ -147,9 +147,9 @@ class ControlPanel(wx.Panel): evtObj = event.GetEventObject() lbl = evtObj.GetLabel() if lbl == '>>': - self.animation_reverse() - else: self.animation_forward() + else: + self.animation_reverse() def set_speed(self, speed): self.speed = int(max(speed, 1)) |
