snakeware

Python-based Linux distro for x86-64 and RPi
git clone git://squid-tech.com/snakeware.git
Log | Files | Refs | README

commit 6c95c3f4381397656751c8811b8c8f29f4f751b9
parent 40f21d7f629d61d713b60678655b75fcfc6984ff
Author: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Date:   Wed, 10 Jun 2020 17:36:18 +0000

fixup! Format Python code with psf/black push

Diffstat:
Msnake_games/snakepaint/snakepaint.py | 9+++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/snake_games/snakepaint/snakepaint.py b/snake_games/snakepaint/snakepaint.py @@ -49,7 +49,7 @@ class SnakePaint: pygame.event.pump() if e.type == pygame.MOUSEBUTTONDOWN: if self.eraser: - self.color = (0,0,0) + self.color = (0, 0, 0) else: self.color = ( random.randrange(256), @@ -59,9 +59,7 @@ class SnakePaint: pygame.draw.circle(self._display_surf, self.color, e.pos, self.radius) self.draw_on = True elif e.type == pygame.MOUSEBUTTONDOWN and self.eraser is True: - self.color = ( - 0,0,0 - ) + self.color = (0, 0, 0) pygame.draw.circle(self._display_surf, self.color, e.pos, self.radius) self.draw_on = True if e.type == pygame.MOUSEBUTTONUP: @@ -79,4 +77,4 @@ class SnakePaint: self.radius, ) self.last_pos = e.pos - pygame.display.flip()- \ No newline at end of file + pygame.display.flip()