[SOLVED] PySide : Failing to create specialized label
In my user interface i'll be having quite a number of labels and i simply don't like the default font size, so i thought about creating a specialized label.
Here's the code:
from PySide import QtGui
def init(self, labeltext):
font = QtGui.QFont()
and that's it.When I try to create an instance from this label, the interpreter just restarts (or in case of the Python commandline, the window closes).
Am I doing something wrong?
Ok.I just didn't create a main application before creating a label instance:
app = QtGui.QApplication(sys.argv)
label = MyLabel('Hello Label!')