expt with font size

This commit is contained in:
2024-02-29 15:48:27 +01:00
parent 3e5255c55e
commit c06bc4f58e
3 changed files with 3 additions and 1 deletions

1
.#pvwidgets.py Symbolic link
View File

@@ -0,0 +1 @@
chrin@proscan-lc8.psi.ch.1003088:1708333710

View File

@@ -555,7 +555,6 @@ class PVGateway(QWidget):
if LooseVersion(QT_VERSION_STR) >= LooseVersion("5.3"):
self.blockSignals(True)
print("pvgateway", self.font().pixelSize(), _value_str)
self.setText(_value_str)
self.blockSignals(False)
else:

View File

@@ -571,6 +571,7 @@ class CAQTextEntry(QLineEdit, PVGateway):
#self.setFont(QFont("Sans Serif", 8))
#QLineEdit.setFont(self, QFont("Sans Serif", 8))
self.font().setPixelSize(12)
QLineEdit.font(self).setPixelSize(8)
print ("FONT-2", self.font().pixelSize(), value)
print ("FONT-2", self.font().pointSize(), value)
PVGateway.receive_monitor_update(self, value, status, alarm_severity)
@@ -625,6 +626,7 @@ class CAQTextEntry(QLineEdit, PVGateway):
def setText(self, value):
QLineEdit.setText(self, value)
self.currentText = self.text()
def enterEvent(self, event):
if self.pv_info is not None: