Okay i have created a wxPython application and converted it into an windows executable programme using py2exe. The app works perfectly but every time i run the exe the console window appears with the gui. Is there anyway to get rid of the console because the app has to run on other workstations.
baki100
-1
Junior Poster in Training
Recommended Answers
Jump to PostUsually you can give your Python code a .pyw extension. This will use the pythonw.exe interpreter avoiding the DOS console.
If you create a distribution with py2exe then you have to make sure you specify windows in the setup ...
""" file = wx2exe.py Py2Exe (version …
Jump to PostLook at Gui2exe to.
Dos not create console default.
Jump to Postin wxApp you should disable it
myApp = wx.App(False)
Jump to Postin wxApp you should disable it
myApp = wx.App(False)
That only affects the error log and console output ...
# redirect=False sends error and print messages to the console window # redirect=True sends error and print messages to a wx popup window app = wx.App(redirect=True)
All 13 Replies
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
baki100
-1
Junior Poster in Training
snippsat
661
Master Poster
Stefano Mtangoo
455
Senior Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Stefano Mtangoo
455
Senior Poster
baki100
-1
Junior Poster in Training
lllllIllIlllI
178
Veteran Poster
baki100
-1
Junior Poster in Training
baki100
-1
Junior Poster in Training
lllllIllIlllI
178
Veteran Poster
Stefano Mtangoo
455
Senior Poster
baki100
-1
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.