Skip to content

Instantly share code, notes, and snippets.

@Jzarecta
Created January 17, 2021 04:35
Show Gist options
  • Save Jzarecta/b3a2ca97ede44baeba53f63c52e381cc to your computer and use it in GitHub Desktop.
Save Jzarecta/b3a2ca97ede44baeba53f63c52e381cc to your computer and use it in GitHub Desktop.
Lanza ventana con pagina web embedida en PyQt5
#! /usr/bin/python3
# pyweb.py - Lanza ventana con pagina web embedida en PyQt5
import sys
from PyQt5.QtCore import *
from PyQt5.QtWebEngineWidgets import *
from PyQt5.QtWidgets import QApplication
app = QApplication(sys.argv)
web = QWebEngineView()
web.load(QUrl('http://python.org'))
web.show()
sys.exit(app.exec())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment