@@ -69,9 +69,9 @@ def __init__(
6969 self .xcenter = x
7070 self .ycenter = y
7171 self .radius = radius
72- self .width = thickness
72+ self ._width = thickness
7373 if thickness < 2 :
74- self .width = 2
74+ self ._width = 2
7575 self ._level = level
7676 tileGridWidth = 2 * self .radius + 1
7777 tileGridHeight = math .ceil (0.71 * self .radius ) + self .radius + 1
@@ -118,7 +118,7 @@ def _draw_gauge(self):
118118
119119 # Inner Arc
120120 x = 0
121- y = self .radius - self .width + 1
121+ y = self .radius - self ._width + 1
122122 d = 3 - 2 * y
123123
124124 while x <= y :
@@ -176,10 +176,10 @@ def _draw_level(self):
176176 round (math .cos (math .radians (prog )) * (self .radius - 1 ), 0 )
177177 )
178178 xe = self .radius + int (
179- round (math .sin (math .radians (prog )) * (self .radius - self .width + 2 ), 0 )
179+ round (math .sin (math .radians (prog )) * (self .radius - self ._width + 2 ), 0 )
180180 )
181181 ye = self .radius + int (
182- round (math .cos (math .radians (prog )) * (self .radius - self .width + 2 ), 0 )
182+ round (math .cos (math .radians (prog )) * (self .radius - self ._width + 2 ), 0 )
183183 )
184184
185185 # Draw end line for level value
@@ -189,13 +189,13 @@ def _draw_level(self):
189189
190190 xp = self .radius + int (
191191 round (
192- math .sin (math .radians (prog + 1 )) * (self .radius - int (self .width / 2 )),
192+ math .sin (math .radians (prog + 1 )) * (self .radius - int (self ._width / 2 )),
193193 0 ,
194194 )
195195 )
196196 yp = self .radius + int (
197197 round (
198- math .cos (math .radians (prog + 1 )) * (self .radius - int (self .width / 2 )),
198+ math .cos (math .radians (prog + 1 )) * (self .radius - int (self ._width / 2 )),
199199 0 ,
200200 )
201201 )
@@ -205,14 +205,14 @@ def _draw_level(self):
205205 xp = self .radius + int (
206206 round (
207207 math .sin (math .radians (prog + i ))
208- * (self .radius - int (self .width / 2 )),
208+ * (self .radius - int (self ._width / 2 )),
209209 0 ,
210210 )
211211 )
212212 yp = self .radius + int (
213213 round (
214214 math .cos (math .radians (prog + i ))
215- * (self .radius - int (self .width / 2 )),
215+ * (self .radius - int (self ._width / 2 )),
216216 0 ,
217217 )
218218 )
@@ -234,10 +234,10 @@ def _draw_regress(self):
234234 round (math .cos (math .radians (prog )) * (self .radius - 1 ), 0 )
235235 )
236236 xe = self .radius + int (
237- round (math .sin (math .radians (prog )) * (self .radius - self .width + 2 ), 0 )
237+ round (math .sin (math .radians (prog )) * (self .radius - self ._width + 2 ), 0 )
238238 )
239239 ye = self .radius + int (
240- round (math .cos (math .radians (prog )) * (self .radius - self .width + 2 ), 0 )
240+ round (math .cos (math .radians (prog )) * (self .radius - self ._width + 2 ), 0 )
241241 )
242242
243243 # Draw end line for level value
@@ -250,13 +250,13 @@ def _draw_regress(self):
250250
251251 xp = self .radius + int (
252252 round (
253- math .sin (math .radians (prog - 1 )) * (self .radius - int (self .width / 2 )),
253+ math .sin (math .radians (prog - 1 )) * (self .radius - int (self ._width / 2 )),
254254 0 ,
255255 )
256256 )
257257 yp = self .radius + int (
258258 round (
259- math .cos (math .radians (prog - 1 )) * (self .radius - int (self .width / 2 )),
259+ math .cos (math .radians (prog - 1 )) * (self .radius - int (self ._width / 2 )),
260260 0 ,
261261 )
262262 )
@@ -266,14 +266,14 @@ def _draw_regress(self):
266266 xp = self .radius + int (
267267 round (
268268 math .sin (math .radians (prog - i ))
269- * (self .radius - int (self .width / 2 )),
269+ * (self .radius - int (self ._width / 2 )),
270270 0 ,
271271 )
272272 )
273273 yp = self .radius + int (
274274 round (
275275 math .cos (math .radians (prog - i ))
276- * (self .radius - int (self .width / 2 )),
276+ * (self .radius - int (self ._width / 2 )),
277277 0 ,
278278 )
279279 )
0 commit comments