PyQt font dialog and widget
Project description
pyqt-font-dialog
PyQt "select the font" dialog and widget
Requirements
PyQt5 >= 5.8
Setup
python -m pip install pyqt-font-dialog
Class/Method Overview
-
FontDialog(font: QFont = QFont('Arial', 10), title='Font')
- font is font, title is title of the dialog. -
FontWidget(font: QFont = QFont('Arial', 10))
fontChanged
- When current font item is changed, this will be emitted.
Usage
1. As a dialog
dialog = FontDialog(textEdit.currentFont())
reply = dialog.exec()
if reply == QDialog.Accepted:
textEdit.setCurrentFont(dialog.get_font())
Preview
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pyqt_font_dialog-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9da4d62dce92bb3512a0186a0f1d44db12eb6e1169e675109d46c2c72dc785cd |
|
MD5 | 1187aef23d0c93efd692bf1239201acb |
|
BLAKE2b-256 | 8a459ea656153039d20e3576c12e63eeb8c98b092b105066aeb7a89b977dd183 |