Home  >  Q&A  >  body text

python - the fastest startup interface GUI

I wrote a relatively large program using pyqt. After packaging, it starts very slowly, about 3 to 10 seconds. The python packaging mechanism requires that all modules must be loaded before starting the program, so adding a startup interface to python also It depends on the entire python program and pyqt library to run, so it is of no use.
How to quickly start a loading startup interface window? It should be implemented in other languages, right?

仅有的幸福仅有的幸福2735 days ago955

reply all(4)I'll reply

  • 阿神

    阿神2017-05-16 13:26:57

    For the win platform, use C to directly adjust CreateWindow[Ex] to ensure it flies. I don’t understand other platforms

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 13:26:57

    C language adjustment win32api

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-16 13:26:57

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-16 13:26:57

    Are you using PyInstaller? If so, try using onedir mode. The default is onefile, which will cause the slow loading phenomenon you mentioned.

    reply
    0
  • Cancelreply