Python PyQt5.QtWidgets.QFontComboBox() Examples
The following are 1
code examples of PyQt5.QtWidgets.QFontComboBox().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
PyQt5.QtWidgets
, or try the search function
.
Example #1
Source File: demoFontComboBox.py From Qt5-Python-GUI-Programming-Cookbook with MIT License | 6 votes |
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(560, 228) self.label = QtWidgets.QLabel(Dialog) self.label.setGeometry(QtCore.QRect(20, 20, 231, 41)) font = QtGui.QFont() font.setPointSize(14) self.label.setFont(font) self.label.setObjectName("label") self.labelTextLine = QtWidgets.QLabel(Dialog) self.labelTextLine.setGeometry(QtCore.QRect(20, 60, 161, 41)) font = QtGui.QFont() font.setPointSize(14) self.labelTextLine.setFont(font) self.labelTextLine.setObjectName("labelTextLine") self.fontComboBox = QtWidgets.QFontComboBox(Dialog) self.fontComboBox.setGeometry(QtCore.QRect(200, 20, 321, 31)) font = QtGui.QFont() font.setPointSize(14) self.fontComboBox.setFont(font) self.fontComboBox.setObjectName("fontComboBox") self.textEdit = QtWidgets.QTextEdit(Dialog) self.textEdit.setGeometry(QtCore.QRect(200, 70, 321, 121)) self.textEdit.setObjectName("textEdit") self.retranslateUi(Dialog) QtCore.QMetaObject.connectSlotsByName(Dialog)