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/color.py | |
| parent | 49cda1bf3aa1800459d1085496291bec90ae6a5a (diff) | |
more commandline component options
commandline options that existed before the redesign are now back
Diffstat (limited to 'components/color.py')
| -rw-r--r-- | components/color.py | 11 |
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) |
