Skip to content

Commit

Permalink
bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
KorryKatti committed Apr 1, 2024
1 parent 678cbbd commit 74ba649
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
23 changes: 13 additions & 10 deletions appfiles/comm/community.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget, QVBoxLayout
from PyQt5.QtCore import QUrl
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.QtWebEngineWidgets import QWebEngineView

class MainWindow(QMainWindow):
def __init__(self):
class WebWindow(QMainWindow):
def __init__(self, url):
super().__init__()

self.setWindowTitle("Embedded Web Page")
self.setGeometry(100, 100, 800, 600)


self.central_widget = QWidget()
self.setCentralWidget(self.central_widget)
self.layout = QVBoxLayout(self.central_widget)

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

# Load URL
url = QUrl("https://www.wikipedia.org")
self.browser.setUrl(url)
self.layout.addWidget(self.browser)
self.browser.load(QUrl(url))

if __name__ == "__main__":
app = QApplication(sys.argv)
window = MainWindow()
url = "https://www.example.com"
window = WebWindow(url)
window.show()
sys.exit(app.exec_())
2 changes: 1 addition & 1 deletion appfiles/repup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def check_for_updates():
def main():
while True:
check_for_updates()
time.sleep(60) # Check for updates every one minute
time.sleep(600) # Check for updates every one minute

if __name__ == "__main__":
main()
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ pygtk
webkit
PyQtWebEngine
PyQt5
tkhtmlview
tkinterweb

0 comments on commit 74ba649

Please sign in to comment.