import sys

from PySide2.QtWidgets import QApplication, QLabel

if __name__ == "__main__":
    app = QApplication([])

    label = QLabel("Hello World")

    label.show()

    sys.exit(app.exec_())
import sys

from PySide2.QtWidgets import QApplication, QLabel

if __name__ == "__main__":
    app = QApplication([])

    label = QLabel("Hello World")

    label.show()

    sys.exit(app.exec_())