python pyqt5 label code example Example: pyqt text in widget frame self.frame = QtGui.QGroupBox(self) self.frame.setTitle("Hello World")