24 lines
707 B
Python
24 lines
707 B
Python
|
#!/usr/bin/env python3
|
||
|
|
||
|
from PyQt5.QtCore import *
|
||
|
from PyQt5.QtWidgets import *
|
||
|
from PyQt5.QtGui import *
|
||
|
from PyQt5.QtWebEngineWidgets import *
|
||
|
import sys
|
||
|
|
||
|
class MainWindow(QMainWindow):
|
||
|
#set up the main window and the url address.
|
||
|
def __init__(self, *args, **kwargs):
|
||
|
super(MainWindow,self).__init__(*args, **kwargs)
|
||
|
self.setWindowTitle("Peppermint ICE Tutorial")
|
||
|
self.setWindowIcon(QIcon('/usr/share/pixmaps/peppermint-old.png'))
|
||
|
self.browser = QWebEngineView()
|
||
|
self.browser.setUrl(QUrl("https://peppermintos.com/guide/ice/"))
|
||
|
self.setCentralWidget(self.browser)
|
||
|
self.show()
|
||
|
|
||
|
app = QApplication(sys.argv)
|
||
|
window = MainWindow()
|
||
|
|
||
|
app.exec_()
|