import sys

from PyQt5.QtGui import QIcon

from PyQt5.QtWidgets import QApplication

from prismriver.qt.window import MainWindow
from prismriver import util


def run():
    util.init_logging(False, True, None)

    app = QApplication(sys.argv)
    app.setWindowIcon(QIcon('prismriver/pixmaps/prismriver-lunasa.png'))

    main = MainWindow()
    main.setGeometry(0, 0, 1024, 1000)
    main.setWindowTitle('Lunasa Prismriver')
    main.show()

    sys.exit(app.exec_())

import sys

from PyQt5.QtGui import QIcon

from PyQt5.QtWidgets import QApplication

from prismriver.qt.window import MainWindow
from prismriver import util


def run():
    util.init_logging(False, True, None)

    app = QApplication(sys.argv)
    app.setWindowIcon(QIcon('prismriver/pixmaps/prismriver-lunasa.png'))
    app.setApplicationName('Lunasa Prismriver')

    main = MainWindow()
    main.setGeometry(0, 0, 1024, 1000)
    main.setWindowTitle('Lunasa Prismriver')
    main.show()

    sys.exit(app.exec_())

Set application name to "Lunasa Prismriver"
[qt] Set application name to "Lunasa Prismriver"

That value will be used as WM_CLASS of application.

  import sys
  
  from PyQt5.QtGui import QIcon
  
  from PyQt5.QtWidgets import QApplication
  
  from prismriver.qt.window import MainWindow
  from prismriver import util
  
  
  def run():
      util.init_logging(False, True, None)
  
      app = QApplication(sys.argv)
      app.setWindowIcon(QIcon('prismriver/pixmaps/prismriver-lunasa.png'))
+     app.setApplicationName('Lunasa Prismriver')
  
      main = MainWindow()
      main.setGeometry(0, 0, 1024, 1000)
      main.setWindowTitle('Lunasa Prismriver')
      main.show()
  
      sys.exit(app.exec_())
  
Set application name to "Lunasa Prismriver"
## Code Before:
import sys

from PyQt5.QtGui import QIcon

from PyQt5.QtWidgets import QApplication

from prismriver.qt.window import MainWindow
from prismriver import util


def run():
    util.init_logging(False, True, None)

    app = QApplication(sys.argv)
    app.setWindowIcon(QIcon('prismriver/pixmaps/prismriver-lunasa.png'))

    main = MainWindow()
    main.setGeometry(0, 0, 1024, 1000)
    main.setWindowTitle('Lunasa Prismriver')
    main.show()

    sys.exit(app.exec_())

## Instruction:
Set application name to "Lunasa Prismriver"
## Code After:
import sys

from PyQt5.QtGui import QIcon

from PyQt5.QtWidgets import QApplication

from prismriver.qt.window import MainWindow
from prismriver import util


def run():
    util.init_logging(False, True, None)

    app = QApplication(sys.argv)
    app.setWindowIcon(QIcon('prismriver/pixmaps/prismriver-lunasa.png'))
    app.setApplicationName('Lunasa Prismriver')

    main = MainWindow()
    main.setGeometry(0, 0, 1024, 1000)
    main.setWindowTitle('Lunasa Prismriver')
    main.show()

    sys.exit(app.exec_())
