mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-25 03:31:44 +00:00
consistent indentation
This commit is contained in:
parent
375590d87f
commit
e1c5cd304d
14
API/main.py
14
API/main.py
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user