text: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  
  import sys
  import random
  from PySide2 import QtCore, QtWidgets, QtGui
  
  class MyWidget(QtWidgets.QWidget):
      def __init__(self):
          super().__init__()
  
          self.hello = ["Hallo Welt", "Hei maailma", "Hola Mundo", "Привет мир"]
  
          self.button = QtWidgets.QPushButton("Click me!")
          self.text = QtWidgets.QLabel("Hello World")
          self.text.setAlignment(QtCore.Qt.AlignCenter)
  
          self.layout = QtWidgets.QVBoxLayout()
          self.layout.addWidget(self.text)
          self.layout.addWidget(self.button)
          self.setLayout(self.layout)
  
          self.button.clicked.connect(self.magic)
  
  
      def magic(self):
          self.text.setText(random.choice(self.hello))
  
  if __name__ == "__main__":
      app = QtWidgets.QApplication([])
  
      widget = MyWidget()
      widget.resize(640, 480)
      widget.show()
  
      sys.exit(app.exec_())
  