From 274ebba2e41c3a06bf9b9cba450e272cdaf5f721 Mon Sep 17 00:00:00 2001 From: korrykatti Date: Wed, 3 Apr 2024 17:29:32 +0530 Subject: [PATCH] webbrowser.open solos , webview doesnt even support js bruh --- appfiles/comm/community.py | 21 --------------------- index.py | 4 +--- 2 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 appfiles/comm/community.py diff --git a/appfiles/comm/community.py b/appfiles/comm/community.py deleted file mode 100644 index d443441..0000000 --- a/appfiles/comm/community.py +++ /dev/null @@ -1,21 +0,0 @@ -import sys -from PyQt5.QtWidgets import QApplication, QMainWindow -from PyQt5.QtCore import QUrl -from PyQt5.QtWebEngineWidgets import QWebEngineView - -class MainWindow(QMainWindow): - def __init__(self): - super().__init__() - - self.setWindowTitle("Embedded Web Browser") - self.setGeometry(100, 100, 800, 600) - - web_view = QWebEngineView() - web_view.setUrl(QUrl('https://example.com')) # Create QUrl object from URL string - self.setCentralWidget(web_view) - -if __name__ == '__main__': - app = QApplication(sys.argv) - window = MainWindow() - window.show() - sys.exit(app.exec_()) diff --git a/index.py b/index.py index 36fe8f4..8d3ed38 100644 --- a/index.py +++ b/index.py @@ -328,9 +328,7 @@ def uninstall_app(): # CallBack function for commenu def commenu_callback(choice): if choice == "Community": - # Create a GUI window to view the HTML content - webview.create_window('example', 'http://example.com') - webview.start() + pass elif choice == "Image Board": pass # Placeholder for Image Board option logic elif choice == "Thunder Halls":