aboutsummaryrefslogtreecommitdiff
path: root/components/color.py
diff options
context:
space:
mode:
authorDH42017-06-23 10:46:54 -0500
committerDH42017-06-23 10:46:54 -0500
commitf3da72ea5402d5cd1f865b56c0a9aa3b9f3957f4 (patch)
tree60e3cced168d4215e9c60d9e84da365e8d90dde0 /components/color.py
parent84ceff7f5490ac5f7e1256a16d82b3b8520cb03a (diff)
parentf8628333afc5dcb2f07f4aff2ee0d41847c0c308 (diff)
Merge branch 'feature-newgui' of github.com:djfun/audio-visualizer-python into feature-newgui
Diffstat (limited to 'components/color.py')
-rw-r--r--components/color.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/components/color.py b/components/color.py
index cb75839..5ffcdea 100644
--- a/components/color.py
+++ b/components/color.py
@@ -233,3 +233,14 @@ class Component(__base__.Component):
else:
self.page.lineEdit_color2.setText(RGBstring)
self.page.pushButton_color2.setStyleSheet(btnStyle)
+
+ def commandHelp(self):
+ print('Specify a color:\n color=255,255,255')
+
+ def command(self, arg):
+ if not arg.startswith('preset=') and '=' in arg:
+ key, arg = arg.split('=', 1)
+ if key == 'color':
+ self.page.lineEdit_color1.setText(arg)
+ return
+ super().command(arg)