Remove embedded browser with website

master
Salvo 'LtWorf' Tomaselli 2017-08-26 17:51:04 +07:00
parent ada4f50843
commit bcdf81cdcd
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 0 additions and 32 deletions

@ -18,12 +18,6 @@
from PyQt5 import QtCore, QtGui, QtWidgets
try: # If QtWebKit is available, uses it
from PyQt5 import QtWebKitWidgets
webk = True
except:
webk = False
version = ''
@ -85,31 +79,7 @@ class Ui_Dialog(object):
self.tab_2.setObjectName("tab_2")
self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.tab_2)
self.verticalLayout_7.setObjectName("verticalLayout_7")
if (webk):
self.webView = QtWebKitWidgets.QWebView(self.tab_2)
self.webView.setUrl(
QtCore.QUrl("http://ltworf.github.io/relational/allowed_expressions.html"))
self.webView.setObjectName("webView")
self.verticalLayout_7.addWidget(self.webView)
else:
self.webLink = QtWidgets.QLabel(self.groupBox)
self.webLink.setFont(font)
self.webLink.setObjectName("lblLink")
self.webLink.setText(QtWidgets.QApplication.translate(
"Dialog", "<a href=\"http://ltworf.github.io/relational/\">Relational's website</a>", None,))
self.webLink.setOpenExternalLinks(True)
self.webLink.setTextFormat(QtCore.Qt.AutoText)
self.webLink.setTextInteractionFlags(
QtCore.Qt.LinksAccessibleByKeyboard |
QtCore.Qt.LinksAccessibleByMouse |
QtCore.Qt.TextBrowserInteraction |
QtCore.Qt.TextSelectableByKeyboard |
QtCore.Qt.TextSelectableByMouse
)
self.verticalLayout_7.addWidget(self.webLink)
self.tabWidget.addTab(self.tab_2, "")
self.verticalLayout_2.addWidget(self.tabWidget)
self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
@ -294,8 +264,6 @@ class Ui_Dialog(object):
"<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read &lt;http://www.gnu.org/philosophy/why-not-lgpl.html&gt;. </p></body></html>", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.License), QtWidgets.QApplication.translate(
"Dialog", "License", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), QtWidgets.QApplication.translate(
"Dialog", "Docs", None))
if __name__ == "__main__":