Site icon Python GUI

Learn About The Application’s InitInstance Method

DelphiVCLApplicationHintHidePause blog banner

In this post, you’ll learn more about InitInstance or DelphiVCL.Application.InitInstance method is used to initialize a newly allocated object instance to all zeros and initialize the instance’s virtual method table pointer. Learning more about InitInstance will allow you to easily build GUI’s with Python Windows GUI Builder.

How to use the InitInstance Method properly?

You should not call InitInstance directly. InitInstance is called by NewInstance when an object is created. When overriding NewInstance, be sure to call InitInstance as the last statement.

InitInstance is not virtual, so you cannot override it. Instead, initialize any data for an object in the constructor.

Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.InitInstance using dir() command:

[crayon-66348a9f9c36b844936162/]

See the responses in our Windows command prompt:

You can also read short information about the DelphiVCL.Application.InitInstance using the print() command:

[crayon-66348a9f9c378208589276/]

See the responses in our Windows command prompt:

 

Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.

Exit mobile version