Skip to content

rename _width and _height attributes #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions adafruit_progressbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ def __init__(
self._palette[1] = outline_color
self._palette[2] = bar_color

self._width = width
self._height = height
# _width and _height are already in use for blinka TileGrid
self._bar_width = width
self._bar_height = height

self._progress_val = 0.0
self.progress = self._progress_val
Expand Down Expand Up @@ -146,14 +147,14 @@ def width(self):
"""The width of the progress bar. In pixels, includes the border.

"""
return self._width
return self._bar_width

@property
def height(self):
"""The height of the progress bar. In pixels, includes the border.

"""
return self._height
return self._bar_height

@fill.setter
def fill(self, color):
Expand Down