Skip to content

Commit

Permalink
kms
Browse files Browse the repository at this point in the history
  • Loading branch information
KorryKatti committed Mar 27, 2024
1 parent e0f4c20 commit 4820f85
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 11 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ also before running anything run ```pip install -r requirements.txt```
arch linux

yay -S python-gobject python-gobject-cairo gtk3 webkit2gtk

yay -S python-pyqt5 qt5-webengine

yay -S python-gobject python-gobject-cairo gtk3 webkit2gtk

30 changes: 19 additions & 11 deletions appfiles/comm/community.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
# Import tkinter and webview libraries
from tkinter import *
import webview
import sys
from PyQt5.QtCore import QUrl
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.QtWebEngineWidgets import QWebEngineView

# define an instance of tkinter
tk = Tk()
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowTitle("Embedded Web Page")

self.browser = QWebEngineView()
self.setCentralWidget(self.browser)

# Load URL
self.browser.setUrl(QUrl('https://www.example.com'))

# size of the window where we show our website
tk.geometry("800x450")

# Open website
webview.create_window('Geeks for Geeks', 'https://geeksforgeeks.org')
webview.start()
if __name__ == "__main__":
app = QApplication(sys.argv)
window = MainWindow()
window.show()
sys.exit(app.exec_())
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ urllib3==2.2.1
cefpython3
pygtk
webkit
PyQtWebEngine
PyQt5

0 comments on commit 4820f85

Please sign in to comment.