mirror of
https://github.com/KenanZhu/AutoLibrary.git
synced 2026-06-18 07:23:03 +08:00
e77c561685
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
37 lines
899 B
Python
37 lines
899 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
Copyright (c) 2025 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/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() |