File indexing completed on 2024-05-19 05:35:37
0001 # SPDX-License-Identifier: GPL-3.0-or-later 0002 # SPDX-FileCopyrightText: 2021 Anupam Basak <anupam.basak27@gmail.com> 0003 0004 import os 0005 0006 from PySide2.QtCore import QUrl, Slot 0007 from PySide2.QtQml import qmlRegisterType 0008 0009 from PicoWizard.module import Module 0010 0011 0012 class Welcome(Module): 0013 def __init__(self, parent=None): 0014 super().__init__(__file__, parent) 0015 0016 @staticmethod 0017 def registerTypes() -> None: 0018 qmlRegisterType(Welcome, 'PicoWizard', 1, 0, 'WelcomeModule') 0019 0020 @staticmethod 0021 def qmlPath() -> QUrl: 0022 return QUrl(os.path.join(os.path.dirname(os.path.realpath(__file__)), "Welcome.qml")) 0023 0024 @Slot(None, result=str) 0025 def moduleName(self) -> str: 0026 return self.tr("Welcome")