推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
angel725
V2EX  ›  Python

pyinstaller 打包 pyqt5 程序去掉了命令行黑框,却又多了一个。

  •  
  •   angel725 · Oct 5, 2018 · 4254 views
    This topic created in 2801 days ago, the information mentioned may be changed or developed.
    pyqt5 做的 gui,点上面的按钮先要打开一个浏览器(用的是 webdriver 实现)
    能正常运行。
    用 pyinstaller XX.py 打包后,直接打开就有一个黑框

    然后我加了参数-w
    pyinstaller -w xx.py
    启动的黑框没了,但点按钮后,出来一个 geckodriver.exe 的命令行(黑框 ),

    怎么回事呢?能去掉吗?
    1 replies    2018-10-06 03:46:57 +08:00
    ysc3839
        1
    ysc3839  
       Oct 6, 2018 via Android
    通过修改 CreateProcess 的参数能隐藏控制台窗口,但是如果是 Python 的话可能经过了层层封装,无法直接控制 CreateProcess 的参数。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2420 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 00:23 · PVG 08:23 · LAX 17:23 · JFK 20:23
    ♥ Do have faith in what you're doing.