#NEWLINE# def task_func( t ) : #NEWLINE# #INDENT# progress = ProgressDialog ( title = 'progress' , message = ( 'counting to %d' % t ) , max = t , show_time = True , can_cancel = True ) #NEWLINE# progress . open ( ) #NEWLINE# for i in range ( 0 , ( t + 1 ) ) : #NEWLINE# #INDENT# time . sleep ( 1 ) #NEWLINE# print ( i ) #NEWLINE# ( cont , skip ) = progress . update ( i ) #NEWLINE# if ( ( not cont ) or skip ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# progress . update ( progress )