Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 4959035

Browse files
committed
Added a test application.
1 parent 8348bf2 commit 4959035

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

test/Frontend.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import os
2+
import sys
3+
sys.path.insert(0, os.path.abspath('..'))
4+
5+
from pyTerminalUI import LineTerminal, Severity
6+
7+
class Application(LineTerminal):
8+
def __init__(self):
9+
super().__init__(Severity.All)
10+
11+
def run(self):
12+
self.WriteQuiet("This is a quiet message.")
13+
self.WriteNormal("This is a normal message.")
14+
self.WriteInfo("This is a info message.")
15+
self.WriteDebug("This is a debug message.")
16+
self.WriteWarning("This is a warning message.")
17+
self.WriteError("This is an error message.")
18+
self.WriteFatal("This is a fatal message.")
19+
20+
# entry point
21+
if __name__ == "__main__":
22+
app = Application()
23+
app.run()
24+
app.exit()

0 commit comments

Comments
 (0)