font

Module Contents

setFont(widget[, fontSize, weight])

set the font of widget

getFont([fontSize, weight])

create font

setFont(widget: PyQt5.QtWidgets.QWidget, fontSize=14, weight=QFont.Normal)

set the font of widget

Parameters

widget: QWidget

the widget to set font

fontSize: int

font pixel size

weight: QFont.Weight

font weight

getFont(fontSize=14, weight=QFont.Normal)

create font

Parameters

fontSize: int

font pixel size

weight: QFont.Weight

font weight