From eace0a176312965bfc5c1f0e7cd889397a46dc07 Mon Sep 17 00:00:00 2001 From: Matthew Newville Date: Thu, 18 Jul 2024 11:09:10 -0500 Subject: [PATCH] tweak motor button sizes for linux --- epics/wx/motordetailframe.py | 4 ++-- epics/wx/motorpanel.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/epics/wx/motordetailframe.py b/epics/wx/motordetailframe.py index dc27dbe2..2e07a7fa 100755 --- a/epics/wx/motordetailframe.py +++ b/epics/wx/motordetailframe.py @@ -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), diff --git a/epics/wx/motorpanel.py b/epics/wx/motorpanel.py index e8154293..39ee2b53 100755 --- a/epics/wx/motorpanel.py +++ b/epics/wx/motorpanel.py @@ -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)