#!/usr/bin/env python3

import sys
from PyQt5.QtCore import QUrl
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWebEngineWidgets import QWebEngineView

# If you are using PyQt6, use these imports instead:
# from PyQt6.QtCore import QUrl
# from PyQt6.QtWidgets import QApplication
# from PyQt6.QtWebEngineWidgets import QWebEngineView # (or PyQt6.QtWebEngineQuick depending on setup)

app = QApplication(sys.argv)

# Create the browser view
browser = QWebEngineView()
browser.setUrl(QUrl("https://httpbin.org/html"))
browser.setWindowTitle("PyQtWebEngine Test")
browser.resize(800, 600)
browser.show()

sys.exit(app.exec())
