Font size to 16 CAQTextEntry
This commit is contained in:
14
pvwidgets.py
14
pvwidgets.py
@@ -575,13 +575,14 @@ class CAQTextEntry(QLineEdit, PVGateway):
|
||||
|
||||
def configure_widget(self):
|
||||
self.setFocusPolicy(Qt.StrongFocus)
|
||||
|
||||
f = QFont("Sans Serif")
|
||||
f.setPixelSize(8)
|
||||
self.setFont(f)
|
||||
self.setFont(QFont("Sans Serif", 16))
|
||||
|
||||
#f = QFont("Sans Serif")
|
||||
#f.setPixelSize(11)
|
||||
#self.setFont(f)
|
||||
#fm = QFontMetricsF(f)
|
||||
#As for CAQLabel
|
||||
fm = QFontMetricsF(QFont("Sans Serif", 10))
|
||||
fm = QFontMetricsF(QFont("Sans Serif", 11))
|
||||
qrect = fm.boundingRect(self.suggested_text)
|
||||
|
||||
_width_scaling_factor = 1.2
|
||||
@@ -613,9 +614,6 @@ class CAQTextEntry(QLineEdit, PVGateway):
|
||||
val = self.cafe.get(self.handle, 'native')
|
||||
|
||||
def setText(self, value):
|
||||
f = QFont("Sans Serif")
|
||||
f.setPixelSize(8)
|
||||
QLineEdit.setFont(self, f)
|
||||
QLineEdit.setText(self, value)
|
||||
self.currentText = self.text()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user