kopia lustrzana https://github.com/inkstitch/inkstitch
reverse the >> button
rodzic
8d196ace7f
commit
e749fdc781
|
@ -42,7 +42,7 @@ class ControlPanel(wx.Panel):
|
||||||
self.btnBackwardStitch.Bind(wx.EVT_BUTTON, self.animation_one_stitch_backward)
|
self.btnBackwardStitch.Bind(wx.EVT_BUTTON, self.animation_one_stitch_backward)
|
||||||
self.btnForwardStitch = wx.Button(self, -1, label='|>')
|
self.btnForwardStitch = wx.Button(self, -1, label='|>')
|
||||||
self.btnForwardStitch.Bind(wx.EVT_BUTTON, self.animation_one_stitch_forward)
|
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.direction.Bind(wx.EVT_BUTTON, self.on_direction_button)
|
||||||
self.pauseBtn = wx.Button(self, -1, label=_('Pause'))
|
self.pauseBtn = wx.Button(self, -1, label=_('Pause'))
|
||||||
self.pauseBtn.Bind(wx.EVT_BUTTON, self.on_pause_start_button)
|
self.pauseBtn.Bind(wx.EVT_BUTTON, self.on_pause_start_button)
|
||||||
|
@ -147,9 +147,9 @@ class ControlPanel(wx.Panel):
|
||||||
evtObj = event.GetEventObject()
|
evtObj = event.GetEventObject()
|
||||||
lbl = evtObj.GetLabel()
|
lbl = evtObj.GetLabel()
|
||||||
if lbl == '>>':
|
if lbl == '>>':
|
||||||
self.animation_reverse()
|
|
||||||
else:
|
|
||||||
self.animation_forward()
|
self.animation_forward()
|
||||||
|
else:
|
||||||
|
self.animation_reverse()
|
||||||
|
|
||||||
def set_speed(self, speed):
|
def set_speed(self, speed):
|
||||||
self.speed = int(max(speed, 1))
|
self.speed = int(max(speed, 1))
|
||||||
|
|
Ładowanie…
Reference in New Issue