diff options
| author | tassaron | 2017-06-22 22:23:04 -0400 |
|---|---|---|
| committer | tassaron | 2017-06-22 22:23:04 -0400 |
| commit | 3c903794e3588560f2b9d342214009d55a675d5a (patch) | |
| tree | 8b1b1a55343d2489b90c14020d5b174db5c7d7ea /components/original.py | |
| parent | 49cda1bf3aa1800459d1085496291bec90ae6a5a (diff) | |
more commandline component options
commandline options that existed before the redesign are now back
Diffstat (limited to 'components/original.py')
| -rw-r--r-- | components/original.py | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/components/original.py b/components/original.py index 328d64f..6222157 100644 --- a/components/original.py +++ b/components/original.py @@ -184,14 +184,21 @@ 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 + if not arg.startswith('preset=') and '=' in arg: + key, arg = arg.split('=', 1) + if key == 'color': + self.page.lineEdit_visColor.setText(arg) + return + elif key == 'layout': + if arg == 'classic': + self.page.comboBox_visLayout.setCurrentIndex(0) + elif arg == 'split': + self.page.comboBox_visLayout.setCurrentIndex(1) + elif arg == 'bottom': + self.page.comboBox_visLayout.setCurrentIndex(2) + return super().command(arg) def commandHelp(self): - print('Give a layout name: classic, split, or bottom') + print('Give a layout name:\n layout=[classic/split/bottom]') + print('Specify a color:\n color=255,255,255') |
