开发者

is there a way to have a python application run invisibly?

开发者 https://www.devze.com 2022-12-16 01:11 出处:网络
开发者_高级运维I have a cherrypy application that I want to control over http with a simple gui. The problem is I don\'t want both the cherrypy window and the gui running at the same time. Is there a
开发者_高级运维

I have a cherrypy application that I want to control over http with a simple gui. The problem is I don't want both the cherrypy window and the gui running at the same time. Is there a way I can make the cherrypy applications window visible?

Its being written for windows, which probably makes a difference


Use pythonw.exe rather than python.exe It will start without a console window.

If you're using py2exe, you need to change your setup file to not use a console

from distutils.core import setup
import py2exe
setup(windows=[{"script":"hello.py"}])
0

精彩评论

暂无评论...
验证码 换一张
取 消