The ClassParent method or DelphiVCL.Application.ClassParent is used during Windows app development to return the type of the immediate ancestor of a class.
ClassParent returns the name of the parent class for an object instance or class reference. For TObject, ClassParent returns nil (Delphi) or NULL (C++).
Avoid using ClassParent in application code.
Let’s browse all the properties and methods of the DelphiVCL.Application.ClassParent using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.ClassParent) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.ClassParent using the print() command:
1 2 |
print(DelphiVCL.Application.ClassParent) print(DelphiVCL.Application.ClassParent.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.