When developing GUI applications and you need to provide console I/O, you need to call FreeConsole after you end your console I/O code block.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.FreeConsole using dir() command:
[crayon-6632ea446337c409345001/]
See the responses in our Windows command prompt:
Here is the working example of the implementation of DelphiVCL.FreeConsole:
[crayon-6632ea446338a954333559/]
See the complete code here and here.
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.