In this post, we’ll use the Create method of the DelphiVCL.Application object, & DelphiVCL.Application.Create, to create a new VCL-based application.
Do not call Create directly. Each GUI application automatically creates an instance of an application object. Learning how to do it will allow you to easily build GUIs with Python Program Maker.
For DelphiVCL.Application or TApplication, the Create method initializes default values for some of its properties. It also prepares the application to run by setting up objects such as hint windows, the application icon, the main window handle, the instance handle, lists for managing child windows of the main window (form), and so on.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.Create using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.Create) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.Create using the print() command:
1 2 |
print(DelphiVCL.Application.Create) print(DelphiVCL.Application.Create.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.