Tags:
Forums: 

คือว่าผม Compile โปรแกรม python ที่ผมเขียนด้วย PyInstaller ให้เป็น exe แต่ทุกครั้งที่ได้ exe มาเมื่อ ใช้งาน ก็จะมีการเปิด ms dos มาด้วยครับ ผมอยากจะให้ไม่ ต้องเปิด ms dos อะคับ ไม่ทราบว่าต้อง config ตรงไหนเพิ่มคับ

Get latest news from Blognone
By: cwt
AndroidRed Hat
on 24 November 2008 - 22:30 #72710

ใช้คำสั่ง python Makespec.py -h แล้วจะพบท่อนหนึ่งว่า

    Windows specific options:
    -c, --console, --nowindowed
                        use a console subsystem executable (Windows only)
                        (default)
    -w, --windowed, --noconsole
                        use a Windows subsystem executable (Windows only)

ดังนั้นให้ใส่ -w ด้วยครับเวลา Makespec

By: khao_lek on 24 November 2008 - 23:17 #72715 Reply to:72710

ทำได้เรียบร้อยแล้วครับ ขอบคุณ คุณ cwt มากครับ