![pexelsfauxels3182826 → Python GUI This Is The DelphiVCLApplicationModalLevel Property](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/03/pexels-fauxels-3182826-1801760-scaled.jpg?resize=1140%2C694&ssl=1)
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:
![0dir3032080 → Python GUI This Is The DelphiVCLApplicationModalLevel Property](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/09/0dir-3032080.png?resize=684%2C242&ssl=1)
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:
![0print6115828 → Python GUI This Is The DelphiVCLApplicationModalLevel Property](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/09/0print-6115828.png?resize=685%2C305&ssl=1)
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.