mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-25 11:31:46 +00:00
rename text class
This commit is contained in:
parent
75d0c05877
commit
82e5259e4b
10
API/main.py
10
API/main.py
@ -4,9 +4,9 @@ from rgbmatrix import graphics
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
||||||
class Test(SampleBase):
|
class Text(SampleBase):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(Test, self).__init__(*args, **kwargs)
|
super(Text, 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):
|
||||||
@ -24,6 +24,6 @@ class Test(SampleBase):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
test = Test()
|
text = Text()
|
||||||
if not test.process():
|
if not text.process():
|
||||||
test.print_help()
|
text.print_help()
|
||||||
|
Loading…
Reference in New Issue
Block a user