![featuredImage2 → Python GUI featuredimage2 4](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/03/featuredImage2-9015423.png?resize=1140%2C675&ssl=1)
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:
![0dir9152992 → Python GUI 0dir 9152992](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/06/0dir-9152992.png?resize=685%2C117&ssl=1)
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:
![0print5816534 → Python GUI 0print 5816534](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/06/0print-5816534.png?resize=685%2C104&ssl=1)
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.