There’s no such option with cxfreeze. However, I use
base = "Win32GUI". This let remove the console window of the wx app.
To be clear, the problem is not with the console window associated to the wx app. The problem is with console windows created when external programs are run from the wx app.
Here is an example :
USE_THREAD = True
def __init__(self, titre):
wx.Frame.__init__(self, None, -1, title = titre, size = (200, 200))
self.button = wx.Button(self, wx.ID_ANY, "timeout")
def _on_click(self, event):
if USE_THREAD :
class ThreadedTimeout(threading.Thread) :
def __init__(self) :
fen = Principale("Test")
app = MonApp(0)
When the console window associated with the wx app is not discarded, children processes send their output in this console and no other console window is created.
When the console window associated with the wx app is discarded (when freezed or run with pythonw), a new console window is created for each child process.
What I what to achieve is to discard all console windows.
wxPbConsole.py (991 Bytes)