Esempio n. 1
0
def getHelpTextWidget(tag):
    text = QtGui.QTextEdit()
    text.setFocusPolicy(QtCore.Qt.NoFocus)
    text.setReadOnly(True)
    text.setAutoFormatting(text.AutoAll)
    [text.append(t) for t in getHelp(tag)]
    return text
Esempio n. 2
0
    def __init__(self, *args, **kwargs):
        super(ConfirmApplyPage, self).__init__(*args, **kwargs)

        self.setTitle("Confirming dependency")

        self.setSubTitle("Please review the actions that are about to be " \
                         "taken, and then hit 'Finish' to apply them.")

        self.__depOpts = []

        self.__text = text = QtGui.QTextEdit(self)
        text.setReadOnly(True)
        text.setWordWrapMode(QtGui.QTextOption.NoWrap)

        layout = QtGui.QVBoxLayout(self)
        layout.addWidget(self.__text)