folgendes Rahmenprogramm habe ich (das Fenster erstmal leer; der Inhalte habe ich schon dennoch geschrieben und liegt in der Variable ausgabe).
Code: Alles auswählen
import sys
import requests
import json
from PyQt5.QtWidgets import QApplication, QWidget, QLabel
from PyQt5.QtGui import QIcon
from PyQt5.QtCore import pyqtSlot
def window():
app = QApplication(sys.argv)
widget = QWidget()
textLabel = QLabel(widget)
textLabel.setText(ausgabe)
textLabel.move(10,10)
widget.setGeometry(50,50,920,1200)
widget.setWindowTitle("PyQt5 Example")
widget.show()
sys.exit(app.exec_())
if __name__ == '__main__':
window()
Grüße
Jana