In this post, you’ll learn how to use GetNamePath method or DelphiVCL.Application.GetNamePath to return a string used by the Object Inspector. GetNamePath is used to determine the text to display in the Object Inspector for the name of the object being edited. GetNamePath is introduced in TPersistent so descendants such as collections can appear in the Object Inspector. TComponent overrides GetNamePath to return the component’s name. Do not call GetNamePath directly.
Learning more about the GetNamePath method will help you build a Python project more easily in the future with Delphi VCL Applications.
Let’s browse all the properties and methods of the DelphiVCL.Application.GetNamePath using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.GetNamePath) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.GetNamePath using the print() command:
1 2 |
print(DelphiVCL.Application.GetNamePath) print(DelphiVCL.Application.GetNamePath.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.