diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-09-08 17:03:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-08 17:03:33 +0200 |
| commit | 427dac519bb9ceadf03012ccca44c012b7990b36 (patch) | |
| tree | ea674e9372b1597db0508696cfc40fdcb0852484 /lib | |
| parent | 577823e276040d4f71810f7f8fc173225dbc4e74 (diff) | |
Fix Param Simulator (win/mac) (#2507)
* add pause icon
* fix params simulator for mac
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/gui/simulator.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/gui/simulator.py b/lib/gui/simulator.py index 963acd45..e1357432 100644 --- a/lib/gui/simulator.py +++ b/lib/gui/simulator.py @@ -76,20 +76,20 @@ class ControlPanel(wx.Panel): self.btnForwardCommand.Bind(wx.EVT_BUTTON, self.animation_one_command_forward) self.btnForwardCommand.SetBitmap(self.load_icon('forward_command')) self.btnForwardCommand.SetToolTip(_('Go forward one command (page-up)')) - self.btnForward = wx.ToggleButton(self, -1, style=self.button_style) + self.btnForward = wx.BitmapToggleButton(self, -1, style=self.button_style) self.btnForward.SetValue(True) self.btnForward.Bind(wx.EVT_TOGGLEBUTTON, self.on_forward_button) self.btnForward.SetBitmap(self.load_icon('forward')) self.btnForward.SetToolTip(_('Animate forward (arrow right)')) - self.btnReverse = wx.ToggleButton(self, -1, style=self.button_style) + self.btnReverse = wx.BitmapToggleButton(self, -1, style=self.button_style) self.btnReverse.Bind(wx.EVT_TOGGLEBUTTON, self.on_reverse_button) self.btnReverse.SetBitmap(self.load_icon('reverse')) self.btnReverse.SetToolTip(_('Animate in reverse (arrow right)')) - self.btnPlay = wx.ToggleButton(self, -1, style=self.button_style) + self.btnPlay = wx.BitmapToggleButton(self, -1, style=self.button_style) self.btnPlay.Bind(wx.EVT_TOGGLEBUTTON, self.on_play_button) self.btnPlay.SetBitmap(self.load_icon('play')) self.btnPlay.SetToolTip(_('Play (P)')) - self.btnPause = wx.ToggleButton(self, -1, style=self.button_style) + self.btnPause = wx.BitmapToggleButton(self, -1, style=self.button_style) self.btnPause.Bind(wx.EVT_TOGGLEBUTTON, self.on_pause_button) self.btnPause.SetBitmap(self.load_icon('pause')) self.btnPause.SetToolTip(_('Pause (P)')) @@ -97,7 +97,7 @@ class ControlPanel(wx.Panel): self.btnRestart.Bind(wx.EVT_BUTTON, self.animation_restart) self.btnRestart.SetBitmap(self.load_icon('restart')) self.btnRestart.SetToolTip(_('Restart (R)')) - self.btnNpp = wx.ToggleButton(self, -1, style=self.button_style) + self.btnNpp = wx.BitmapToggleButton(self, -1, style=self.button_style) self.btnNpp.Bind(wx.EVT_TOGGLEBUTTON, self.toggle_npp) self.btnNpp.SetBitmap(self.load_icon('npp')) self.btnNpp.SetToolTip(_('Display needle penetration point (O)')) @@ -109,19 +109,19 @@ class ControlPanel(wx.Panel): self.stitchBox.Bind(wx.EVT_TEXT_ENTER, self.on_stitch_box_focusout) self.stitchBox.Bind(wx.EVT_KILL_FOCUS, self.on_stitch_box_focusout) self.Bind(wx.EVT_LEFT_DOWN, self.on_stitch_box_focusout) - self.btnJump = wx.ToggleButton(self, -1, style=self.button_style) + self.btnJump = wx.BitmapToggleButton(self, -1, style=self.button_style) self.btnJump.SetToolTip(_('Show jump stitches')) self.btnJump.SetBitmap(self.load_icon('jump')) self.btnJump.Bind(wx.EVT_TOGGLEBUTTON, lambda event: self.on_marker_button('jump', event)) - self.btnTrim = wx.ToggleButton(self, -1, style=self.button_style) + self.btnTrim = wx.BitmapToggleButton(self, -1, style=self.button_style) self.btnTrim.SetToolTip(_('Show trims')) self.btnTrim.SetBitmap(self.load_icon('trim')) self.btnTrim.Bind(wx.EVT_TOGGLEBUTTON, lambda event: self.on_marker_button('trim', event)) - self.btnStop = wx.ToggleButton(self, -1, style=self.button_style) + self.btnStop = wx.BitmapToggleButton(self, -1, style=self.button_style) self.btnStop.SetToolTip(_('Show stops')) self.btnStop.SetBitmap(self.load_icon('stop')) self.btnStop.Bind(wx.EVT_TOGGLEBUTTON, lambda event: self.on_marker_button('stop', event)) - self.btnColorChange = wx.ToggleButton(self, -1, style=self.button_style) + self.btnColorChange = wx.BitmapToggleButton(self, -1, style=self.button_style) self.btnColorChange.SetToolTip(_('Show color changes')) self.btnColorChange.SetBitmap(self.load_icon('color_change')) self.btnColorChange.Bind(wx.EVT_TOGGLEBUTTON, lambda event: self.on_marker_button('color_change', event)) |
