Change size of text
Unsolved
Qt for Python
-
How Can I change size of text here?
class IntroductionPage(QtWidgets.QWizardPage): def __init__(self, *args, **kwargs): super(IntroductionPage, self).__init__(*args, **kwargs) self.setTitle("Introduction") self.label = QtWidgets.QLabel("Welcome to the One Inc™'s Teacher Interactive Accessment tool. Follow the prompts to set up your Mark Sheet") self.label.setWordWrap(True) self.layout = QtWidgets.QVBoxLayout() self.layout.addWidget(self.label) self.setLayout(self.layout) def nextId(self): return Wizard.class1 ...
-
@SGaist Yes. Is it possible?
self.setTitle("Introduction") self.label = QtWidgets.QLabel("Welcome to the One Inc™'s Teacher Interactive Accessment tool. Follow the prompts to set up your Mark Sheet")
-
@JonB Thank. I dont understand how to use it for
self.setTitle("Introduction") self.label = QtWidgets.QLabel("Welcome to the One Inc™'s Teacher Interactive Accessment tool. Follow the prompts to set up your Mark Sheet")
-
@sashup
Something like:font = self.label.font() font.setPointSize(font.pointSize() + 10) self.label.setFont(font)
?
@JonB ?
font = self.label.font() font.setPointSize(font.pointSize() + 10) self.label.setFont(font) self.setTitle("Introduction") self.label = QtWidgets.QLabel("Welcome to the One Inc™'s Teacher Interactive Accessment tool. Follow the prompts to set up your Mark Sheet")
-
@JonB ?
font = self.label.font() font.setPointSize(font.pointSize() + 10) self.label.setFont(font) self.setTitle("Introduction") self.label = QtWidgets.QLabel("Welcome to the One Inc™'s Teacher Interactive Accessment tool. Follow the prompts to set up your Mark Sheet")
-
@sashup
How can you (try to) accessself.label
forself.label.setFont(font)
if you have not yet goneself.label = QtWidgets.QLabel()
?