aboutsummaryrefslogtreecommitdiff
path: root/components/original.py
diff options
context:
space:
mode:
authortassaron2017-06-22 18:40:34 -0400
committertassaron2017-06-22 18:40:34 -0400
commit5c74d496a960042ed4a4279328dc81e23dfdc1d9 (patch)
treef11c4f6fe69ab202688b55100ec841bb24f8804f /components/original.py
parent82011de966f95afa88ec9e11e0ce86cbd04d5fc0 (diff)
preset-loading and basic args from commandline
also made some docstrings more informative
Diffstat (limited to 'components/original.py')
-rw-r--r--components/original.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/components/original.py b/components/original.py
index 5e2f9d4..328d64f 100644
--- a/components/original.py
+++ b/components/original.py
@@ -183,3 +183,15 @@ class Component(__base__.Component):
return im
+ def command(self, arg):
+ if not arg.startswith('preset='):
+ if arg == 'classic':
+ self.layout = 0; return
+ elif arg == 'split':
+ self.layout = 1; return
+ elif arg == 'bottom':
+ self.layout = 2; return
+ super().command(arg)
+
+ def commandHelp(self):
+ print('Give a layout name: classic, split, or bottom')