consistent indentation

This commit is contained in:
waltem01 2023-11-22 16:22:19 +01:00
parent 375590d87f
commit e1c5cd304d

View File

@ -5,11 +5,11 @@ import time
class Test(SampleBase): class Test(SampleBase):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super(Test, self).__init__(*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!") 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() offscreen_canvas = self.matrix.CreateFrameCanvas()
font = graphics.Font() font = graphics.Font()
font.LoadFont("deps/fonts/7x13.bdf") font.LoadFont("deps/fonts/7x13.bdf")
@ -27,6 +27,6 @@ class Test(SampleBase):
# Main function # Main function
if __name__ == "__main__": if __name__ == "__main__":
test = Test() test = Test()
if (not test.process()): if (not test.process()):
test.print_help() test.print_help()