Skip to content

Commit 17d33fc

Browse files
authored
rename _width and _height attributes
fix for #17
1 parent 2dde38e commit 17d33fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_progressbar.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def __init__(
8080
self._palette[1] = outline_color
8181
self._palette[2] = bar_color
8282

83-
self._width = width
84-
self._height = height
83+
self._bar_width = width
84+
self._bar_height = height
8585

8686
self._progress_val = 0.0
8787
self.progress = self._progress_val
@@ -146,14 +146,14 @@ def width(self):
146146
"""The width of the progress bar. In pixels, includes the border.
147147
148148
"""
149-
return self._width
149+
return self._bar_width
150150

151151
@property
152152
def height(self):
153153
"""The height of the progress bar. In pixels, includes the border.
154154
155155
"""
156-
return self._height
156+
return self._bar_height
157157

158158
@fill.setter
159159
def fill(self, color):

0 commit comments

Comments
 (0)