Tags:

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

Comments

By: cwt
iPhoneAndroid
cwt's blog
on 24/11/08 22:30 #72710 toggle
cwt's picture

ใช้คำสั่ง 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
khao_lek's blog
on 24/11/08 23:17 #72715 Reply to:72710 toggle
khao_lek's picture

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