expt with font size

This commit is contained in:
2024-02-29 15:01:38 +01:00
parent bf08fbe488
commit 68e8da943e

View File

@@ -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'''