PySide / Qt6 python application starter code

#pyside app starter code by izzulmakin
import sys 

from PySide6 import QtCore, QtGui
from PySide6 import QtWidgets



class Main(QtWidgets.QMainWindow):
  def __init__(self):
    super(Main, self).__init__()
    self.fr = QtWidgets.QFrame(self)
    self.igr = QtWidgets.QGridLayout(self.fr)
    self.fr.setLayout(self.igr)
    self.setCentralWidget(self.fr)
    
  
x = QtWidgets.QApplication(sys.argv)
a = Main()
a.show()
x.exec()