File: //lib/python2.7/site-packages/packagekit/progress.pyc
�
�^c @ sR y d d l m Z Wn! e k
r7 d d l m Z n Xd e f d � � YZ d S( i����( t Iterablet PackagekitProgressc B sG e Z d Z d d � Z d � Z d � Z d � Z d � Z d � Z RS( s%
Progress class there controls the total progress of a transaction
the transaction is divided in n milestones. the class contains
the current step (milestone n -> n+1) and the percentage of the whole transaction
Usage:
from packagekit import PackagekitProgress
steps = [10, 30, 50, 70] # Milestones in %
progress = PackagekitProgress(steps)
for milestone in progress:
# do the action is this step
for i in range(100):
# do some action
print "progress : %s " % milestone
c C s7 t t | � j � | s&