1
0
lpo-image-processing/app/python/py_simple_gimp/main.py

26 lines
625 B
Python

"""Main python file to run SkeletonApp."""
import sys
from PyQt6.QtGui import QPixmap, QIcon
from PyQt6.QtWidgets import QApplication, QMainWindow
# from PyQt6.QtCore import QResource
from res import icons_qrc
from src.gui.mainwindow_ui import Ui_MainWindow
from PyQt6.QtGui import QAction
icons_qrc.qInitResources()
def main():
"""Main app."""
app = QApplication(sys.argv)
app.setWindowIcon(QIcon(QPixmap(":/icons/src/gui/images/icons/preview.png")))
window = QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(window)
window.show()
sys.exit(app.exec())
if __name__ == '__main__':
main()