Skip to content

Commit f149b60

Browse files
authored
Merge pull request #18 from mtowara/mtowara-patch-1
rename _width and _height attributes
2 parents 2dde38e + f6a9b8e commit f149b60

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

adafruit_progressbar.py

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

83-
self._width = width
84-
self._height = height
83+
# _width and _height are already in use for blinka TileGrid
84+
self._bar_width = width
85+
self._bar_height = height
8586

8687
self._progress_val = 0.0
8788
self.progress = self._progress_val
@@ -146,14 +147,14 @@ def width(self):
146147
"""The width of the progress bar. In pixels, includes the border.
147148
148149
"""
149-
return self._width
150+
return self._bar_width
150151

151152
@property
152153
def height(self):
153154
"""The height of the progress bar. In pixels, includes the border.
154155
155156
"""
156-
return self._height
157+
return self._bar_height
157158

158159
@fill.setter
159160
def fill(self, color):

0 commit comments

Comments
 (0)