def flush(self):
    pass

def close(self):
    pass
sys.stdout = dummyStream()
sys.stderr = dummyStream()
sys.stdin = dummyStream()
sys.__stdout__ = dummyStream()
sys.__stderr__ = dummyStream()
sys.__stdin__ = dummyStream()
How can I freeze a dual-mode (GUI and console) application using cx_Freeze?