29 lines
492 B
Python

import sys
from PySide6.QtWidgets import QApplication
from app.view import Window
from app.scheduler_manager import scheduler
def main():
# 启动队列调度器
scheduler.start()
# 创建Qt应用
app = QApplication(sys.argv)
window = Window()
window.show()
window.setMicaEffectEnabled(True)
# 启动事件循环
exit_code = app.exec()
# 停止队列调度器
scheduler.stop()
sys.exit(exit_code)
if __name__ == "__main__":
main()