kopia lustrzana https://github.com/inkstitch/inkstitch
buttons for backward and forward one stitch
rodzic
e56e99329a
commit
7eb36c5fc6
|
|
@ -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)
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue