expt with font size
This commit is contained in:
1
.#pvwidgets.py
Symbolic link
1
.#pvwidgets.py
Symbolic link
@@ -0,0 +1 @@
|
||||
chrin@proscan-lc8.psi.ch.1003088:1708333710
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user