Skip to content

Commit

Permalink
CRLF to LF line ending conversion
Browse files Browse the repository at this point in the history
PyCharm has a mind of its own for settings.
  • Loading branch information
ch4nsuk3 committed Dec 1, 2024
1 parent 3f1434d commit a3ba721
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions adafruit_button/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,13 +294,13 @@ def height(self, new_height: int) -> None:

def resize(self, new_width: int, new_height: int) -> None:
"""Resize the button to the new width and height given
:param new_width int the desired width
:param new_height int the desired height
:param int new_width: The desired width in pixels.
:param int new_height: he desired height in pixels.
"""
self._width = new_width
self._height = new_height
self._empty_self_group()
self._create_body()
if self.body:
self.append(self.body)
self.label = self.label
self.label = self.label
2 changes: 1 addition & 1 deletion adafruit_button/button_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,4 @@ def label_color(self) -> int:
@label_color.setter
def label_color(self, new_color: Union[int, Tuple[int, int, int]]) -> None:
self._label_color = _check_color(new_color)
self._label.color = self._label_color
self._label.color = self._label_color
2 changes: 1 addition & 1 deletion adafruit_button/sprite_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ def _subclass_selected_behavior(self, value: Optional[Any]) -> None:
self._btn_tilegrid.pixel_shader = self._selected_bmp_palette
else:
self._btn_tilegrid.bitmap = self._bmp
self._btn_tilegrid.pixel_shader = self._bmp_palette
self._btn_tilegrid.pixel_shader = self._bmp_palette

0 comments on commit a3ba721

Please sign in to comment.