From e1c5cd304db65c92287d1344efd532d890550347 Mon Sep 17 00:00:00 2001 From: waltem01 Date: Wed, 22 Nov 2023 16:22:19 +0100 Subject: [PATCH] consistent indentation --- API/main.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/API/main.py b/API/main.py index fde2b75..a9abe54 100644 --- a/API/main.py +++ b/API/main.py @@ -5,11 +5,11 @@ import time class Test(SampleBase): - def __init__(self, *args, **kwargs): - super(Test, self).__init__(*args, **kwargs) - self.parser.add_argument("-t", "--text", help="The text to scroll on the RGB LED panel", default="Hello world!") + def __init__(self, *args, **kwargs): + super(Test, self).__init__(*args, **kwargs) + self.parser.add_argument("-t", "--text", help="The text to scroll on the RGB LED panel", default="Hello world!") - def run(self): + def run(self): offscreen_canvas = self.matrix.CreateFrameCanvas() font = graphics.Font() font.LoadFont("deps/fonts/7x13.bdf") @@ -27,6 +27,6 @@ class Test(SampleBase): # Main function if __name__ == "__main__": - test = Test() - if (not test.process()): - test.print_help() + test = Test() + if (not test.process()): + test.print_help()