From 9829be0bcd5d7ad96a1eea1743f56429596e94e1 Mon Sep 17 00:00:00 2001 From: chrin Date: Thu, 29 Feb 2024 14:30:24 +0100 Subject: [PATCH] expt with font size --- pvgateway.py | 2 -- pvwidgets.py | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pvgateway.py b/pvgateway.py index 012f2f7..6b50aa2 100644 --- a/pvgateway.py +++ b/pvgateway.py @@ -1000,7 +1000,6 @@ class PVGateway(QWidget): self._qt_readback_color_mode() #self.setStatusTip(self.status_tip) - elif self.qt_object_name == self.PV_CONTROLLER: if self.color_mode == self.ACT_ON_BEAM: #self.setStatusTip("PV setting acts directly on beam") @@ -1009,7 +1008,6 @@ class PVGateway(QWidget): self.color_mode = self.NOT_ACT_ON_BEAM #self.setStatusTip("PV setting does not influence beam") - #self._qt_property_selected = self._qt_dynamic_property_set(self.color_mode) diff --git a/pvwidgets.py b/pvwidgets.py index 921ba71..0dc807a 100644 --- a/pvwidgets.py +++ b/pvwidgets.py @@ -566,6 +566,7 @@ class CAQTextEntry(QLineEdit, PVGateway): @Slot(int, int, int) @Slot(float, int, int) def receive_monitor_update(self, value, status, alarm_severity): + self.setFont(QFont("Sans Serif", 12)) PVGateway.receive_monitor_update(self, value, status, alarm_severity) @Slot(int, str, int) @@ -576,7 +577,7 @@ class CAQTextEntry(QLineEdit, PVGateway): def configure_widget(self): self.setFocusPolicy(Qt.StrongFocus) #self.setFont(QFont("Sans Serif", 12)) - QLineEdit.setFont(self, QFont("Sans Serif", 8)) + #QLineEdit.setFont(self, QFont("Sans Serif", 8)) #f = QFont("Sans Serif") #f.setPixelSize(11) #self.setFont(f) @@ -584,7 +585,6 @@ class CAQTextEntry(QLineEdit, PVGateway): #As for CAQLabel fm = QFontMetricsF(QFont("Sans Serif", 9)) qrect = fm.boundingRect(self.suggested_text) - _width_scaling_factor = 1.2 self.setFixedHeight(int(fm.lineSpacing()*1.8))