| 655 | """ |
| 656 | |
| 657 | def __init__( |
| 658 | self, |
| 659 | bar_width: Optional[int] = 40, |
| 660 | style: StyleType = "bar.back", |
| 661 | complete_style: StyleType = "bar.complete", |
| 662 | finished_style: StyleType = "bar.finished", |
| 663 | pulse_style: StyleType = "bar.pulse", |
| 664 | table_column: Optional[Column] = None, |
| 665 | ) -> None: |
| 666 | self.bar_width = bar_width |
| 667 | self.style = style |
| 668 | self.complete_style = complete_style |
| 669 | self.finished_style = finished_style |
| 670 | self.pulse_style = pulse_style |
| 671 | super().__init__(table_column=table_column) |
| 672 | |
| 673 | def render(self, task: "Task") -> ProgressBar: |
| 674 | """Gets a progress bar widget for a task.""" |