from PyQt5.QtWidgets import QFontDialog
self.pushButton.clicked.connect(self.front)def front(self):font , ok =QFontDialog.getFont()if ok:self.label.setFont(font)
from PyQt5.QtWidgets import QFontDialog
self.pushButton.clicked.connect(self.front)def front(self):font , ok =QFontDialog.getFont()if ok:self.label.setFont(font)