Skip to content

Commit

Permalink
tweak motor button sizes for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed Jul 18, 2024
1 parent d7a0bf7 commit eace0a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions epics/wx/motordetailframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ def __init__(self, parent=None, motor=None):
twk_val = PVFloatCtrl(twk_panel, size=(110, -1), precision=prec)
twk_val.SetPV(self.motor.PV('TWV'))

twk_left = wx.Button(twk_panel, label='<', size=(30, 30))
twk_right = wx.Button(twk_panel, label='>', size=(30, 30))
twk_left = wx.Button(twk_panel, label='<', size=(35, 30))
twk_right = wx.Button(twk_panel, label='>', size=(35, 30))
twk_left.Bind(wx.EVT_BUTTON, self.OnLeftButton)
twk_right.Bind(wx.EVT_BUTTON, self.OnRightButton)
twk_sizer.AddMany([(twk_left, 0, CEN),
Expand Down
4 changes: 2 additions & 2 deletions epics/wx/motorpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ def CreatePanel(self):
self.__twkbox.Bind(wx.EVT_COMBOBOX, self.OnTweakBoxComboEvent)
self.__twkbox.Bind(wx.EVT_TEXT_ENTER, self.OnTweakBoxEnterEvent)

self.twr = PVButton(self, label='<', size=(30, 30))
self.twf = PVButton(self, label='>', size=(30, 30))
self.twr = PVButton(self, label='<', size=(35, 30))
self.twf = PVButton(self, label='>', size=(35, 30))

self.stopbtn = add_button(self, label=' Stop ', action=self.OnStopButton)
self.morebtn = add_button(self, label=' More ', action=self.OnMoreButton)
Expand Down

0 comments on commit eace0a1

Please sign in to comment.