def _get_progress_widgets(self):
"""
Returns the progress widgets for a file download.
"""
format_custom_text = progressbar.FormatCustomText(
'Fetching [ %(file)s ] :: ', dict(file=self.remote_file_name),
)
widgets = [
format_custom_text,
progressbar.ETA(),
progressbar.Percentage(),
progressbar.Bar(),
]
return widgets
评论列表
文章目录