mirror of
https://github.com/KenanZhu/AutoLibrary.git
synced 2026-06-18 07:23:03 +08:00
706fc889f9
- 新增 src/boot 目录,用于存放启动时需要初始化的模块 - 新增 src/managers 目录,用于存放项目中的管理模块 - 新增 src/managers/config 目录,用于存放配置管理模块 - 新增 src/managers/log 目录,用于存放日志管理模块 - 新增 src/managers/driver 目录,用于存放浏览器驱动管理模块 - 修改对应文件中 import 导入路径
37 lines
913 B
Python
37 lines
913 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
Copyright (c) 2025 - 2026 KenanZhu.
|
|
All rights reserved.
|
|
|
|
This software is provided "as is", without any warranty of any kind.
|
|
You may use, modify, and distribute this file under the terms of the MIT License.
|
|
See the LICENSE file for details.
|
|
"""
|
|
import sys
|
|
|
|
from PySide6.QtCore import QTranslator
|
|
from PySide6.QtWidgets import QApplication
|
|
|
|
from gui.ALMainWindow import ALMainWindow
|
|
from gui.resources import ALResource
|
|
|
|
from boot.AppInitializer import initializeApp
|
|
|
|
|
|
def main():
|
|
|
|
app = QApplication(sys.argv)
|
|
translator = QTranslator()
|
|
if translator.load(":/res/trans/translators/qtbase_zh_CN.ts"):
|
|
app.installTranslator(translator)
|
|
app.setStyle('Fusion')
|
|
app.setApplicationName("AutoLibrary")
|
|
if not initializeApp():
|
|
sys.exit(-1)
|
|
window = ALMainWindow()
|
|
window.show()
|
|
sys.exit(app.exec_())
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main() |