MCPcopy Create free account
hub / github.com/DIMFLIX/Spectrum-Security / __init__

Method __init__

ui/widgets/circular_progress.py:6–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4
5class 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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected