यह कुछ हद तक काम किया नाम बदलने सकता है, लेकिन यह मुद्दे हैं। मेरा प्रोग्राम कंसोल मोड और एक जीयूआई मोड दोनों में चलता है। कंसोल से --console
तर्क के साथ चलाए जाने पर यह कंसोल मोड में चलता है। जब मैंने नीचे दी गई प्रक्रिया का पालन किया, तो यह अब और काम नहीं करता है और मेरा प्रोग्राम केवल एक जीयूआई ऐप है।
निम्नलिखित स्रोत कोड \Python\Lib\site-packages\cx_Freeze\samples\PyQt4\setup.py
में नमूना फ़ाइल से आता है। दिन का सबक पढ़ें पढ़ें।
# A simple setup script to create an executable using PyQt4. This also
# demonstrates the method for creating a Windows executable that does not have
# an associated console.
#
# PyQt4app.py is a very simple type of PyQt4 application
#
# Run the build process by running the command 'python setup.py build'
#
# If everything works well you should find a subdirectory in the build
# subdirectory that contains the files needed to run the application
import sys
from cx_Freeze import setup, Executable
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup(
name = "simple_PyQt4",
version = "0.1",
description = "Sample cx_Freeze PyQt4 script",
executables = [Executable("PyQt4app.py", base = base)])
स्रोत
2010-05-21 12:40:55
यह काम नहीं लग रहा था। मैंने इसे पीवायडब्लू में बदल दिया लेकिन यह अभी भी पॉप अप हुआ। –