2022-07-19 18:52:03 +00:00
|
|
|
#!/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)
|
2023-01-19 11:05:14 -01:00
|
|
|
self.setWindowTitle("Peppermint CodeBerg")
|
|
|
|
self.setWindowIcon(QIcon('/opt/pypep/cb.png'))
|
2022-07-19 18:52:03 +00:00
|
|
|
self.browser = QWebEngineView()
|
2023-01-19 11:05:14 -01:00
|
|
|
self.browser.setUrl(QUrl("https://codeberg.org/Peppermint_OS"))
|
2022-07-19 18:52:03 +00:00
|
|
|
self.setCentralWidget(self.browser)
|
|
|
|
self.show()
|
|
|
|
|
|
|
|
app = QApplication(sys.argv)
|
|
|
|
window = MainWindow()
|
|
|
|
|
|
|
|
app.exec_()
|