Table of Contents
What is the DelphiVCL.Application.ModalLevel Property?
In this post, you’ll learn more about ModalLevel or DelphiVCL.Application.ModalLevel property that gives the number of currently open modal forms. ModalLevel is a read-only property that gives the number of modal forms which are currently open. Any call to ModalStarted increments the value of ModalLevel, while each call to ModalFinished decrements its value. Learning more about DelphiVCL.Application.ModalLevel Property will allow you to easily build GUIs with Python Scripting.
Let’s browse all the properties and methods of the DelphiVCL.Application.ModalLevel using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.ModalLevel) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.ModalLevel using the print() command:
1 2 |
print(DelphiVCL.Application.ModalLevel) print(DelphiVCL.Application.ModalLevel.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.