(self)
| 4 | |
| 5 | class CicularProgress(QWidget): |
| 6 | def __init__(self): |
| 7 | QWidget.__init__(self) |
| 8 | |
| 9 | self.value = 0 |
| 10 | self.width = 180 |
| 11 | self.height = 180 |
| 12 | self.progress_width = 5 |
| 13 | self.progress_rounded_cap = True |
| 14 | self.progress_color = "#FFF" |
| 15 | self.max_value = 100 |
| 16 | self.suffix = "%" |
| 17 | self.text_color = "#FFF" |
| 18 | self.enable_shadow = True |
| 19 | self.enable_text = True |
| 20 | self.enable_bg = True |
| 21 | self.bg_color = '#383838' |
| 22 | |
| 23 | self.resize(self.width, self.height) |
| 24 | |
| 25 | def set_value(self, value): |
| 26 | if self.value != value: |
nothing calls this directly
no outgoing calls
no test coverage detected