File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ def __init__(
80
80
self ._palette [1 ] = outline_color
81
81
self ._palette [2 ] = bar_color
82
82
83
- self .width = width
84
- self .height = height
83
+ self ._width = width
84
+ self ._height = height
85
85
86
86
self ._progress_val = 0.0
87
87
self .progress = self ._progress_val
@@ -141,6 +141,20 @@ def fill(self):
141
141
"""
142
142
return self ._palette [0 ]
143
143
144
+ @property
145
+ def width (self ):
146
+ """The width of the progress bar. In pixels, includes the border.
147
+
148
+ """
149
+ return self ._width
150
+
151
+ @property
152
+ def height (self ):
153
+ """The height of the progress bar. In pixels, includes the border.
154
+
155
+ """
156
+ return self ._height
157
+
144
158
@fill .setter
145
159
def fill (self , color ):
146
160
"""Sets the fill of the progress bar. Can be a hex value for a color or ``None`` for
You can’t perform that action at this time.
0 commit comments