summaryrefslogtreecommitdiff
path: root/lib/app.py
diff options
context:
space:
mode:
authorSanto Cariotti <sancn@live.com>2017-07-29 20:27:47 +0200
committerSanto Cariotti <sancn@live.com>2017-07-29 20:27:47 +0200
commitefda27de3207e3471e2620d72487cdfcea8dd55e (patch)
tree7171903caa5f984fc674182f8454af684213527f /lib/app.py
parent46d56ebe56a99c156bdade1d92f5c1fa41269a41 (diff)
deleted COLORS class for COLORS constants
Diffstat (limited to 'lib/app.py')
-rw-r--r--lib/app.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/app.py b/lib/app.py
index 363fd52..754c10f 100644
--- a/lib/app.py
+++ b/lib/app.py
@@ -1,4 +1,4 @@
-from classes import PersonalError, Colors, r, clear
+from classes import PersonalError, r, clear, YELLOW, BLACK, GREY
from commands import Commands
from listcommands import ListCommands
@@ -13,7 +13,7 @@ class Stout(Commands):
if self.user == '':
return word
else:
- return word + Colors.grey + '(' + self.user + ') '
+ return word + GREY + '(' + self.user + ') '
@staticmethod
def username():
@@ -36,7 +36,7 @@ class Stout(Commands):
else:
cmd = cmd.split()
count = len(cmd)
-
+
if (count == 1 or count == 2) and cmd[0] not in ListCommands.commands:
try:
if cmd[0] == 'info' and count == 1: #general info
@@ -58,12 +58,13 @@ class Stout(Commands):
pass
if __name__ == '__main__':
+
clear()
app = Stout()
cmd = ''
while cmd != 'quit':
try:
- cmd = input('>' + Colors.yellow + app.getName() + Colors.black)
+ cmd = input('>' + YELLOW + app.getName() + BLACK)
except (EOFError, KeyboardInterrupt):
break