M1-Survey-Engine/source/widget/MyMainWindow.py

17 lines
404 B
Python

from PyQt6.QtGui import QIcon
from PyQt6.QtWidgets import QMainWindow
from source import widget, assets_path
icon_path = assets_path / "icon.png"
class MyMainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowIcon(QIcon(str(icon_path.resolve())))
self.setWindowTitle("Sondage")
self.setCentralWidget(widget.FrameSurvey("./surveys.json"))