28 lines
708 B
Python
28 lines
708 B
Python
import sys
|
|
from PySide6.QtWidgets import QApplication
|
|
from PySide6.QtCore import QLocale
|
|
|
|
from qfluentwidgets import FluentTranslator
|
|
|
|
from components.main_window import MainWindow
|
|
from common.config import VERSION, ZH_APP_NAME, ORG_NAME, APP_NAME
|
|
import common.resources
|
|
|
|
|
|
# --- 运行 GUI ---
|
|
def main():
|
|
app = QApplication(sys.argv)
|
|
app.setOrganizationName(ORG_NAME)
|
|
app.setApplicationName(APP_NAME)
|
|
|
|
translator = FluentTranslator(QLocale(QLocale.Language.Chinese, QLocale.Country.China))
|
|
app.installTranslator(translator)
|
|
|
|
win = MainWindow(title=f"插件安全标记 {VERSION}", width=1000, height=760)
|
|
win.show()
|
|
return app.exec()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|