
For development on Windows OnGetMainFormHandle or DelphiVCL.Application.OnGetMainFormHandle is the event triggered when reading the value of the MainFormHandle property.
Let’s take a look at all of DelphiVCL.Application.OnGetMainFormHandle properties and methods:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.OnGetMainFormHandle) |
See the responses in our Windows command prompt:

You can also read short information about the DelphiVCL.Application.OnGetMainFormHandle using the print() command:
1 2 |
print(DelphiVCL.Application.OnGetMainFormHandle) print(DelphiVCL.Application.OnGetMainFormHandle.__doc__) |
See the responses in our Windows command prompt:

Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.