snakeware

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

commit fdf7ba3e1adeba33c9fdd1539a8a3c80066eb834
parent b5b1f66ce43a755bd8221a2e43dd3fa34d29606e
Author: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Date:   Wed, 17 Jun 2020 21:09:47 +0000

fixup! Format Python code with psf/black push

Diffstat:
Msnakewm/apps/clocks/stopwatch/stopwatch.py | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/snakewm/apps/clocks/stopwatch/stopwatch.py b/snakewm/apps/clocks/stopwatch/stopwatch.py @@ -56,12 +56,12 @@ class Stopwatch(pygame_gui.elements.UIWindow): if self.currently_counting: self.time_counter += time_delta secs = int(self.time_counter % 60) - mins = int( (self.time_counter % (60**2)) // 60 ) - hours = int(self.time_counter // (60**2)) + mins = int((self.time_counter % (60 ** 2)) // 60) + hours = int(self.time_counter // (60 ** 2)) counter_str = f"{str(hours)} : {str(mins)} : {str(secs)}" self.set_text(counter_str) - + def set_text(self, text): self.textbox.html_text = text self.textbox.rebuild() @@ -69,4 +69,4 @@ class Stopwatch(pygame_gui.elements.UIWindow): def reset_time(self): self.time_counter = 0 self.currently_counting = False - self.update(0)- \ No newline at end of file + self.update(0)