The following statements illustrate how you can use the milestone command to provide feedback on the progress of a volume computation: numObjects = 4
for i in range(numObjects+1):
milestone('Computing total volume', 'parts', i, numObjects)
...
compute volume here
...
Figure 1. Displaying the progress of a command.
|