15 lines
364 B
Python
15 lines
364 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.setCentralWidget(widget.FrameSurvey("./surveys.json"))
|