-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff7e433
commit 7e08c88
Showing
64 changed files
with
5,862 additions
and
512 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
__author__ = "DLmaster361 <[email protected]>" | ||
__license__ = "GPL-3.0 license" | ||
|
||
from .config import AppConfig, QueueConfig, MaaConfig | ||
from .core import AppConfig, QueueConfig, MaaConfig, Task, TaskManager, MainTimer | ||
from .models import MaaManager | ||
from .services import Notification, CryptoHandler, SystemHandler | ||
from .ui import AUTO_MAA | ||
|
@@ -39,6 +39,9 @@ | |
"AppConfig", | ||
"QueueConfig", | ||
"MaaConfig", | ||
"Task", | ||
"TaskManager", | ||
"MainTimer", | ||
"MaaManager", | ||
"Notification", | ||
"CryptoHandler", | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# <AUTO_MAA:A MAA Multi Account Management and Automation Tool> | ||
# Copyright © <2024> <DLmaster361> | ||
|
||
# This file is part of AUTO_MAA. | ||
|
||
# AUTO_MAA is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, | ||
# or (at your option) any later version. | ||
|
||
# AUTO_MAA is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty | ||
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
# the GNU General Public License for more details. | ||
|
||
# You should have received a copy of the GNU General Public License | ||
# along with AUTO_MAA. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
# [email protected] | ||
|
||
""" | ||
AUTO_MAA | ||
AUTO_MAA核心组件包 | ||
v4.2 | ||
作者:DLmaster_361 | ||
""" | ||
|
||
__version__ = "4.2.0" | ||
__author__ = "DLmaster361 <[email protected]>" | ||
__license__ = "GPL-3.0 license" | ||
|
||
from .config import AppConfig, QueueConfig, MaaConfig | ||
from .main_info_bar import MainInfoBar | ||
from .task_manager import Task, TaskManager | ||
from .timer import MainTimer | ||
|
||
__all__ = [ | ||
"AppConfig", | ||
"QueueConfig", | ||
"MaaConfig", | ||
"MainInfoBar", | ||
"Task", | ||
"TaskManager", | ||
"MainTimer", | ||
] |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# <AUTO_MAA:A MAA Multi Account Management and Automation Tool> | ||
# Copyright © <2024> <DLmaster361> | ||
|
||
# This file is part of AUTO_MAA. | ||
|
||
# AUTO_MAA is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, | ||
# or (at your option) any later version. | ||
|
||
# AUTO_MAA is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty | ||
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See | ||
# the GNU General Public License for more details. | ||
|
||
# You should have received a copy of the GNU General Public License | ||
# along with AUTO_MAA. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
# [email protected] | ||
|
||
""" | ||
AUTO_MAA | ||
AUTO_MAA信息通知栏 | ||
v4.2 | ||
作者:DLmaster_361 | ||
""" | ||
|
||
from loguru import logger | ||
from PySide6.QtCore import Qt | ||
from qfluentwidgets import ( | ||
InfoBar, | ||
InfoBarPosition, | ||
) | ||
|
||
|
||
class _MainInfoBar: | ||
"""信息通知栏""" | ||
|
||
def __init__(self, parent=None): | ||
|
||
self.parent = parent | ||
|
||
def push_info_bar(self, mode: str, title: str, content: str, time: int): | ||
"""推送到信息通知栏""" | ||
|
||
if self.parent is None: | ||
logger.error("信息通知栏未设置父窗口") | ||
return None | ||
|
||
if mode == "success": | ||
InfoBar.success( | ||
title=title, | ||
content=content, | ||
orient=Qt.Horizontal, | ||
isClosable=True, | ||
position=InfoBarPosition.TOP_RIGHT, | ||
duration=time, | ||
parent=self.parent, | ||
) | ||
elif mode == "warning": | ||
InfoBar.warning( | ||
title=title, | ||
content=content, | ||
orient=Qt.Horizontal, | ||
isClosable=True, | ||
position=InfoBarPosition.TOP_RIGHT, | ||
duration=time, | ||
parent=self.parent, | ||
) | ||
elif mode == "error": | ||
InfoBar.error( | ||
title=title, | ||
content=content, | ||
orient=Qt.Horizontal, | ||
isClosable=True, | ||
position=InfoBarPosition.TOP_RIGHT, | ||
duration=time, | ||
parent=self.parent, | ||
) | ||
elif mode == "info": | ||
InfoBar.info( | ||
title=title, | ||
content=content, | ||
orient=Qt.Horizontal, | ||
isClosable=True, | ||
position=InfoBarPosition.TOP_RIGHT, | ||
duration=time, | ||
parent=self.parent, | ||
) | ||
|
||
|
||
MainInfoBar = _MainInfoBar() |
Oops, something went wrong.