WxPython: Disable Application Loading With Console

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ekasII
    New Member
    • Jul 2009
    • 16

    WxPython: Disable Application Loading With Console

    Sup'

    I created a WxPython application and renamed the file extension from .py to .pyw. The application loads without a console when I run it (which is what I want), but after I convert it using py2exe, the application loads with a console even though my setup.py compiled the exe using the .pyw extension. Please advice.

    Thanks in advance.
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    Originally posted by ekasII
    Sup'

    I created a WxPython application and renamed the file extension from .py to .pyw. The application loads without a console when I run it (which is what I want), but after I convert it using py2exe, the application loads with a console even though my setup.py compiled the exe using the .pyw extension. Please advice.

    Thanks in advance.
    You need this statement in your setup.py:
    Code:
        windows = ["your_app.pyw"]
    This tells py2exe to compile the script without the console.

    Comment

    • ekasII
      New Member
      • Jul 2009
      • 16

      #3
      Tanx bvdet ..I Always Get My Answers From Here..

      Comment

      Working...