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:
1 2 3 |
import DelphiVCL dir(DelphiVCL.FreeConsole) |
See the responses in our Windows command prompt:
Here is the working example of the implementation of DelphiVCL.FreeConsole:
1 2 3 4 5 6 7 8 9 10 |
def main(): Application.Initialize() Application.Title = "MyDelphiApp" f = MainForm(Application) f.Show() FreeConsole() Application.Run() Application.Destroy() main() |
See the complete code here and here.
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.