![featuredImage2 → Python GUI featuredimage2 4](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/03/featuredImage2-9015423.png?resize=1140%2C675&ssl=1)
ActionUpdateDelay property or DelphiVCL.Application.ActionUpdateDelay used to delay the call to DoActionIdle. This applies to native Windows development. The following example demonstrates the usefulness of this property:
- Create an MDI project with the main form, an MDI Child, and a TAction class.
- Link the TAction OnUpdate event to a method.
- Run the program and maximize the MDI child.
If you open Windows Task Manager, you can see that CPU usage for the MDI application is nearly 100%. However, if you set Application.ActionUpdateDelay to a non-zero value, the CPU usage for the application is significantly lower than 100%.
Let’s browse all the properties and methods of the DelphiVCL.Application.ActionUpdateDelay using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.ActionUpdateDelay) |
See the responses in our Windows command prompt:
![0dir7632872 → Python GUI 0dir 7632872](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/05/0dir-7632872.png?resize=685%2C243&ssl=1)
You can also read short information about the DelphiVCL.Application.ActionUpdateDelay using the print() command:
1 2 |
print(DelphiVCL.Application.ActionUpdateDelay) print(DelphiVCL.Application.ActionUpdateDelay.__doc__) |
See the responses in our Windows command prompt:
![0print6775152 → Python GUI 0print 6775152](https://i0.wp.com/pythongui.org/wp-content/uploads/2021/05/0print-6775152.png?resize=684%2C306&ssl=1)
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.