In this post, you’ll learn how to use the GetEnumerator method or DelphiVCL.Application.GetEnumerator to return a TComponent enumerator. GetEnumerator returns a TComponentEnumerator reference, which enumerates the components contained within a specified containing component. To process all these subcomponents, call the TComponentEnumerator GetCurrent method within a While MoveNext do loop.
Learning how to do it will allow you to easily build GUIs with Python Windows GUI Builder.
Table of Contents
How to examine the properties and methods of DelphiVCL.Application.GetEnumerator
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.GetEnumerator using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.GetEnumerator) |
See the responses in our Windows command prompt:
Using the Python Print() Command to examine properties and methods
You can also read short information about the DelphiVCL.Application.GetEnumerator using the print() command:
1 2 |
print(DelphiVCL.Application.GetEnumerator) print(DelphiVCL.Application.GetEnumerator.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.