Exemplo n.º 1
0
class InfoDialog(QtWidgets.QDialog):

     def __init__(self, parent=None):

        QtWidgets.QWidget.__init__(self, parent)
        self.ui = Ui_Information_Dialog()
        self.ui.setupUi(self)
        self.ui.ButtonInfo.clicked.connect(self.info)
        self.ui.ButtonCancel.clicked.connect(self.cancel_dialog)
        self.ui.ButtonMoreInfo.clicked.connect(self.moreinfo)

        options =  get_pandoc_options()
        data = '\n'.join(options)
        self.ui.textBrowser.setContent(data)



     def cancel_dialog(self):
         InfoDialog.close(self)

     def info(self):
        options =  get_pandoc_options()
        data = '\n'.join(options)
        self.ui.textBrowser.setContent(data)

     def moreinfo(self):
        website = 'http://pandoc.org/README.html'
        self.ui.textBrowser.load(QtCore.QUrl(website))

     def back(self):
         back = 'href="javascript:history.go(-1)'
         self.ui.textBrowser.load(QtCore.QUrl(back))
Exemplo n.º 2
0
     def __init__(self, parent=None):

        QtWidgets.QWidget.__init__(self, parent)
        self.ui = Ui_Information_Dialog()
        self.ui.setupUi(self)
        self.ui.ButtonInfo.clicked.connect(self.info)
        self.ui.ButtonCancel.clicked.connect(self.cancel_dialog)
        self.ui.ButtonMoreInfo.clicked.connect(self.moreinfo)

        options =  get_pandoc_options()
        data = '\n'.join(options)
        self.ui.textBrowser.setContent(data)