From 68e8da943e5cf8ab35d4c30d51ddb85eacef9d7d Mon Sep 17 00:00:00 2001 From: chrin Date: Thu, 29 Feb 2024 15:01:38 +0100 Subject: [PATCH] expt with font size --- pvwidgets.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pvwidgets.py b/pvwidgets.py index 222679a..63a197d 100644 --- a/pvwidgets.py +++ b/pvwidgets.py @@ -566,11 +566,12 @@ class CAQTextEntry(QLineEdit, PVGateway): @Slot(int, int, int) @Slot(float, int, int) def receive_monitor_update(self, value, status, alarm_severity): - print ("FONT", self.font()) - self.setFont(QFont("Sans Serif", 8)) - QLineEdit.setFont(self, QFont("Sans Serif", 8)) + print ("FONT", self.font().pixelSize()) + print ("FONT", self.font().pointSize()) + #self.setFont(QFont("Sans Serif", 8)) + #QLineEdit.setFont(self, QFont("Sans Serif", 8)) PVGateway.receive_monitor_update(self, value, status, alarm_severity) - print ("FONT-2", self.font()) + @Slot(int, str, int) def receive_connect_update(self, handle: int, pv_name: str, status: int): '''Triggered by connect signal'''