In this post, you’ll learn more about InheritsFrom or DelphiVCL.Application.InheritsFrom method determines the relationship between two object types.
Use InheritsFrom to determine whether a particular class type or object is an instance of a class or one of its descendants. InheritsFrom returns True if the object type specified in the aClass parameter is an ancestor of the object type or the type of the object itself. Otherwise, it returns False.
Learning how to do it will allow you to easily build GUIs with Python Windows GUI Builder.
Table of Contents
What are the properties and methods of the InheritsFrom method?
Let’s browse all the properties and methods of the DelphiVCL.Application.InheritsFrom using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.InheritsFrom) |
See the responses in our Windows command prompt:
How do I see more information about the InheritsFrom method?
You can also read short information about the DelphiVCL.Application.InheritsFrom using the print() command:
1 2 |
print(DelphiVCL.Application.InheritsFrom) print(DelphiVCL.Application.InheritsFrom.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.