diff options
| author | DH4 | 2017-06-23 10:46:54 -0500 |
|---|---|---|
| committer | DH4 | 2017-06-23 10:46:54 -0500 |
| commit | f3da72ea5402d5cd1f865b56c0a9aa3b9f3957f4 (patch) | |
| tree | 60e3cced168d4215e9c60d9e84da365e8d90dde0 /components/original.py | |
| parent | 84ceff7f5490ac5f7e1256a16d82b3b8520cb03a (diff) | |
| parent | f8628333afc5dcb2f07f4aff2ee0d41847c0c308 (diff) | |
Merge branch 'feature-newgui' of github.com:djfun/audio-visualizer-python into feature-newgui
Diffstat (limited to 'components/original.py')
| -rw-r--r-- | components/original.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/components/original.py b/components/original.py index 5e2f9d4..6222157 100644 --- a/components/original.py +++ b/components/original.py @@ -183,3 +183,22 @@ class Component(__base__.Component): return im + def command(self, arg): + 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:\n layout=[classic/split/bottom]') + print('Specify a color:\n color=255,255,255') |
