from PyQt5 import QtWidgets
import sys
from .mainwindow import MainWindow


def run():
    app = QtWidgets.QApplication(sys.argv)
    mainwin = MainWindow()
    mainwin.show()
    result = app.exec_()
    mainwin.deleteLater()
    del mainwin
    app.deleteLater()
    del app
    sys.exit(result)


if __name__ == '__main__':
    run()

b97e1eb5969f9c7a8e2e640c6384192d80dc7b6c
<mask token>

<mask token>


def run():
    app = QtWidgets.QApplication(sys.argv)
    mainwin = MainWindow()
    mainwin.show()
    result = app.exec_()
    mainwin.deleteLater()
    del mainwin
    app.deleteLater()
    del app
    sys.exit(result)


<mask token>

<mask token>


def run():
    app = QtWidgets.QApplication(sys.argv)
    mainwin = MainWindow()
    mainwin.show()
    result = app.exec_()
    mainwin.deleteLater()
    del mainwin
    app.deleteLater()
    del app
    sys.exit(result)


if __name__ == '__main__':
    run()

from PyQt5 import QtWidgets
import sys
from .mainwindow import MainWindow


def run():
    app = QtWidgets.QApplication(sys.argv)
    mainwin = MainWindow()
    mainwin.show()
    result = app.exec_()
    mainwin.deleteLater()
    del mainwin
    app.deleteLater()
    del app
    sys.exit(result)


if __name__ == '__main__':
    run()
