From: Dave Angel on
python(a)bdurham.com wrote:
>> Is there any trick in adding a console window to an application, that was built as 'windows' application?
>>
>
> I was recently wondering the same thing myself. My research indicates
> that its not possible to have a single Windows application that can run
> in both console and GUI ("Windows") modes.
>
> Here are 2 links that explain this in more detail.
>
> <http://stackoverflow.com/questions/493536/can-one-executable-be-both-a-console-and-gui-app>
> <http://objectmix.com/delphi/403126-sending-output-stdout-non-console-app.html>
>
> Malcolm
>
>
Since we're talking MS Windows here, see:

http://msdn.microsoft.com/en-us/library/ms682528(VS.85).aspx

You can access the AllocConsole and related functions with the win32 module:
win32console

This module is part of the win32 extensions, and also part of
ActivePython distribution.

DaveA