Created
January 17, 2021 04:35
-
-
Save Jzarecta/b3a2ca97ede44baeba53f63c52e381cc to your computer and use it in GitHub Desktop.
Lanza ventana con pagina web embedida en PyQt5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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